Update pages/6SVM-Algorthim.py
Browse files- pages/6SVM-Algorthim.py +2 -2
pages/6SVM-Algorthim.py
CHANGED
@@ -65,10 +65,10 @@ def main():
|
|
65 |
st.write("**Hard Margin Constraint:** The model enforces that for all data points,")
|
66 |
st.latex(r"y_i (w^T x_i + b) \geq 1")
|
67 |
|
68 |
-
st.write("**Soft Margin Constraint:** With slack variable
|
69 |
st.latex(r"y_i (w^T x_i + b) \geq 1 - \xi_i")
|
70 |
|
71 |
-
st.write("**Interpretation of the Slack Variable
|
72 |
st.latex(r"""
|
73 |
\begin{cases}
|
74 |
\xi_i = 0 & \text{Correct classification, point lies outside the margin} \\
|
|
|
65 |
st.write("**Hard Margin Constraint:** The model enforces that for all data points,")
|
66 |
st.latex(r"y_i (w^T x_i + b) \geq 1")
|
67 |
|
68 |
+
st.write("**Soft Margin Constraint:** With slack variable \\( \\xi_i \\) to allow misclassification,")
|
69 |
st.latex(r"y_i (w^T x_i + b) \geq 1 - \xi_i")
|
70 |
|
71 |
+
st.write("**Interpretation of the Slack Variable \\( \\xi_i \\):**")
|
72 |
st.latex(r"""
|
73 |
\begin{cases}
|
74 |
\xi_i = 0 & \text{Correct classification, point lies outside the margin} \\
|