Harika22 commited on
Commit
592dadb
Β·
verified Β·
1 Parent(s): cbe8ed2

Update pages/14_SVM.py

Browse files
Files changed (1) hide show
  1. pages/14_SVM.py +3 -4
pages/14_SVM.py CHANGED
@@ -63,9 +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 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
71
  - \( \xi_i > 1 \): Misclassified
@@ -86,7 +85,7 @@ elif section == "βœ… Pros & Cons of SVM":
86
  """)
87
 
88
  elif section == "πŸ”„ Dual Form & Kernel Trick":
89
- st.markdown("""
90
  When data is not linearly separable in its original space, we use the **kernel trick** to transform it.
91
 
92
  ### Common Kernels:
 
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(r"### Slack Variable \( \xi_i \) Interpretation:")
67
+ st.write(r"""
 
68
  - \( \xi_i = 0 \): Correct and outside the margin
69
  - \( 0 < \xi_i \leq 1 \): Inside the margin, but correctly classified
70
  - \( \xi_i > 1 \): Misclassified
 
85
  """)
86
 
87
  elif section == "πŸ”„ Dual Form & Kernel Trick":
88
+ st.markdown(r"""
89
  When data is not linearly separable in its original space, we use the **kernel trick** to transform it.
90
 
91
  ### Common Kernels: