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

Update pages/14_SVM.py

Browse files
Files changed (1) hide show
  1. 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;'>πŸ€– Support Vector Machines (SVM)</h1>", unsafe_allow_html=True)
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 \( \xi_i \) Interpretation:")
 
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