Update pages/SVM_Algorithm.py
Browse files- pages/SVM_Algorithm.py +6 -7
pages/SVM_Algorithm.py
CHANGED
|
@@ -1,12 +1,11 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
|
| 4 |
-
st.set_page_config(page_title="ML Model Explorer"
|
| 5 |
|
| 6 |
st.title("π€ Support Vector Machine (SVM) - In Depth")
|
| 7 |
|
| 8 |
-
|
| 9 |
-
st.header("π What is Support Vector Machine (SVM)?")
|
| 10 |
|
| 11 |
st.markdown("""
|
| 12 |
Support Vector Machine (SVM) is a **supervised learning algorithm** used for both **classification** and **regression** tasks. It finds the optimal hyperplane that best separates data points of different classes (in classification) or fits the best margin for predicting continuous values (in regression).
|
|
@@ -68,7 +67,7 @@ Kernels transform data into higher dimensions to make it linearly separable:
|
|
| 68 |
|
| 69 |
---
|
| 70 |
|
| 71 |
-
## π§ͺ Hyperparameter Tuning with Optuna (Conceptual)
|
| 72 |
Optuna can help optimize:
|
| 73 |
|
| 74 |
- `C` and `gamma` values
|
|
@@ -80,19 +79,19 @@ Optuna uses **Bayesian Optimization** to efficiently explore the parameter space
|
|
| 80 |
|
| 81 |
---
|
| 82 |
|
| 83 |
-
## β
Advantages
|
| 84 |
- Effective in high-dimensional spaces
|
| 85 |
- Memory efficient (uses support vectors only)
|
| 86 |
- Works with nonlinear data using kernels
|
| 87 |
|
| 88 |
-
## π« Limitations
|
| 89 |
- Not suitable for very large datasets
|
| 90 |
- Choosing the right kernel and parameters can be tricky
|
| 91 |
- Less interpretable compared to tree-based models
|
| 92 |
|
| 93 |
---
|
| 94 |
|
| 95 |
-
## π‘ Real-World Applications
|
| 96 |
- Email spam detection
|
| 97 |
- Image classification
|
| 98 |
- Stock price prediction (SVR)
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
|
| 4 |
+
st.set_page_config(page_title="ML Model Explorer")
|
| 5 |
|
| 6 |
st.title("π€ Support Vector Machine (SVM) - In Depth")
|
| 7 |
|
| 8 |
+
|
|
|
|
| 9 |
|
| 10 |
st.markdown("""
|
| 11 |
Support Vector Machine (SVM) is a **supervised learning algorithm** used for both **classification** and **regression** tasks. It finds the optimal hyperplane that best separates data points of different classes (in classification) or fits the best margin for predicting continuous values (in regression).
|
|
|
|
| 67 |
|
| 68 |
---
|
| 69 |
|
| 70 |
+
### π§ͺ Hyperparameter Tuning with Optuna (Conceptual)
|
| 71 |
Optuna can help optimize:
|
| 72 |
|
| 73 |
- `C` and `gamma` values
|
|
|
|
| 79 |
|
| 80 |
---
|
| 81 |
|
| 82 |
+
### β
Advantages
|
| 83 |
- Effective in high-dimensional spaces
|
| 84 |
- Memory efficient (uses support vectors only)
|
| 85 |
- Works with nonlinear data using kernels
|
| 86 |
|
| 87 |
+
### π« Limitations
|
| 88 |
- Not suitable for very large datasets
|
| 89 |
- Choosing the right kernel and parameters can be tricky
|
| 90 |
- Less interpretable compared to tree-based models
|
| 91 |
|
| 92 |
---
|
| 93 |
|
| 94 |
+
### π‘ Real-World Applications
|
| 95 |
- Email spam detection
|
| 96 |
- Image classification
|
| 97 |
- Stock price prediction (SVR)
|