Sathwikchowdary commited on
Commit
25c5609
·
verified ·
1 Parent(s): f154da5

Update pages/6SVM-Algorthim.py

Browse files
Files changed (1) hide show
  1. 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 \( \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} \\
 
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} \\