Update app.py
Browse files
app.py
CHANGED
@@ -54,13 +54,11 @@ with gr.Blocks() as demo:
|
|
54 |
|
55 |
inp1 = gr.Radio(['poly', 'rbf', 'sigmoid'], label="Kernel", info="Choose a kernel")
|
56 |
inp2 = gr.Radio(['scale', 'auto'], label="Gamma", info="Choose a gamma value")
|
57 |
-
|
58 |
-
|
59 |
with gr.Row():
|
60 |
plot = gr.Plot(label=f"Decision function plot for Non-Linear SVC with the '{inp1}' kernel and '{inp2}' gamma ")
|
61 |
num = gr.Textbox(label="Test Accuracy")
|
62 |
|
63 |
-
inp1.change(getColorMap, inputs=[inp1, inp2], outputs=[plot, num])
|
64 |
inp2.change(getColorMap, inputs=[inp1, inp2], outputs=[plot, num])
|
65 |
|
66 |
gr.HTML("<hr>")
|
|
|
54 |
|
55 |
inp1 = gr.Radio(['poly', 'rbf', 'sigmoid'], label="Kernel", info="Choose a kernel")
|
56 |
inp2 = gr.Radio(['scale', 'auto'], label="Gamma", info="Choose a gamma value")
|
57 |
+
|
|
|
58 |
with gr.Row():
|
59 |
plot = gr.Plot(label=f"Decision function plot for Non-Linear SVC with the '{inp1}' kernel and '{inp2}' gamma ")
|
60 |
num = gr.Textbox(label="Test Accuracy")
|
61 |
|
|
|
62 |
inp2.change(getColorMap, inputs=[inp1, inp2], outputs=[plot, num])
|
63 |
|
64 |
gr.HTML("<hr>")
|