Spaces:
Sleeping
Sleeping
Update pages/14_SVM.py
Browse files- pages/14_SVM.py +3 -2
pages/14_SVM.py
CHANGED
|
@@ -20,7 +20,7 @@ section = st.radio(
|
|
| 20 |
]
|
| 21 |
)
|
| 22 |
|
| 23 |
-
st.markdown("<h1 style='text-align: center;'
|
| 24 |
|
| 25 |
if section == "π What is SVM?":
|
| 26 |
st.write("""
|
|
@@ -63,7 +63,8 @@ elif section == "π Mathematical Formulation":
|
|
| 63 |
st.markdown("### Soft Margin Condition:")
|
| 64 |
st.latex(r"y_i (w^T x_i + b) \geq 1 - \xi_i")
|
| 65 |
|
| 66 |
-
st.markdown("### Slack Variable
|
|
|
|
| 67 |
st.write("""
|
| 68 |
- \( \xi_i = 0 \): Correct and outside the margin
|
| 69 |
- \( 0 < \xi_i \leq 1 \): Inside the margin, but correctly classified
|
|
|
|
| 20 |
]
|
| 21 |
)
|
| 22 |
|
| 23 |
+
st.markdown("<h1 style='text-align: center;'>π Support Vector Machines (SVM)</h1>", unsafe_allow_html=True)
|
| 24 |
|
| 25 |
if section == "π What is SVM?":
|
| 26 |
st.write("""
|
|
|
|
| 63 |
st.markdown("### Soft Margin Condition:")
|
| 64 |
st.latex(r"y_i (w^T x_i + b) \geq 1 - \xi_i")
|
| 65 |
|
| 66 |
+
st.markdown("### Slack Variable Interpretation:")
|
| 67 |
+
st.markdown(r"$\xi_i$")
|
| 68 |
st.write("""
|
| 69 |
- \( \xi_i = 0 \): Correct and outside the margin
|
| 70 |
- \( 0 < \xi_i \leq 1 \): Inside the margin, but correctly classified
|