Update app.py
Browse files
app.py
CHANGED
@@ -127,9 +127,9 @@ with gr.Blocks() as demo:
|
|
127 |
n_iter_no_change = gr.Slider(label="Number of Iterations with No Change", value="3", minimum=1, maximum=10, step=1, info="Maximum number of iterations with no score improvement by at leat tol, before stopping")
|
128 |
validation_fraction = gr.Slider(label="Validation Fraction", value="0.2", minimum=0.05, maximum=0.9, step=0.01, info="Fraction of the training data to be used for validation")
|
129 |
tol = gr.Textbox(label='Stopping Criterion', value="0.0001",info="The minimum improvement of score to be considered")
|
|
|
130 |
out1 = gr.Plot()
|
131 |
out2 = gr.Plot()
|
132 |
|
133 |
-
btn = gr.Button("Run")
|
134 |
btn.click(fn=plot, inputs=[classes, max_iterations, num_samples, n_iter_no_change, validation_fraction, tol], outputs=[out1, out2])
|
135 |
demo.launch()
|
|
|
127 |
n_iter_no_change = gr.Slider(label="Number of Iterations with No Change", value="3", minimum=1, maximum=10, step=1, info="Maximum number of iterations with no score improvement by at leat tol, before stopping")
|
128 |
validation_fraction = gr.Slider(label="Validation Fraction", value="0.2", minimum=0.05, maximum=0.9, step=0.01, info="Fraction of the training data to be used for validation")
|
129 |
tol = gr.Textbox(label='Stopping Criterion', value="0.0001",info="The minimum improvement of score to be considered")
|
130 |
+
btn = gr.Button("Plot")
|
131 |
out1 = gr.Plot()
|
132 |
out2 = gr.Plot()
|
133 |
|
|
|
134 |
btn.click(fn=plot, inputs=[classes, max_iterations, num_samples, n_iter_no_change, validation_fraction, tol], outputs=[out1, out2])
|
135 |
demo.launch()
|