Commit
Β·
858cd8c
1
Parent(s):
c44d783
Bold link for the script reference
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def plot_max_margin_hyperplane():
|
|
34 |
|
35 |
heading = 'π€π§‘π€π SGD: Maximum Margin Separating Hyperplane'
|
36 |
|
37 |
-
with gr.Blocks(title = heading, theme
|
38 |
gr.Markdown("# {}".format(heading))
|
39 |
gr.Markdown(
|
40 |
"""
|
@@ -42,7 +42,7 @@ with gr.Blocks(title = heading, theme = 'snehilsanyal/scikit-learn') as demo:
|
|
42 |
a two-class separable dataset using a linear SVM classifier trained using SGD.
|
43 |
"""
|
44 |
)
|
45 |
-
gr.Markdown('Demo is based on
|
46 |
|
47 |
button = gr.Button(value = 'Visualize Maximum Margin Hyperplane')
|
48 |
button.click(plot_max_margin_hyperplane, outputs = gr.Plot())
|
|
|
34 |
|
35 |
heading = 'π€π§‘π€π SGD: Maximum Margin Separating Hyperplane'
|
36 |
|
37 |
+
with gr.Blocks(title = heading, theme= 'snehilsanyal/scikit-learn') as demo:
|
38 |
gr.Markdown("# {}".format(heading))
|
39 |
gr.Markdown(
|
40 |
"""
|
|
|
42 |
a two-class separable dataset using a linear SVM classifier trained using SGD.
|
43 |
"""
|
44 |
)
|
45 |
+
gr.Markdown('**[Demo is based on this script from scikit-learn documentation](https://scikit-learn.org/stable/auto_examples/linear_model/plot_sgd_separating_hyperplane.html#sphx-glr-auto-examples-linear-model-plot-sgd-separating-hyperplane-py)**')
|
46 |
|
47 |
button = gr.Button(value = 'Visualize Maximum Margin Hyperplane')
|
48 |
button.click(plot_max_margin_hyperplane, outputs = gr.Plot())
|