Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def predict(alpha):
|
|
36 |
return plt
|
37 |
|
38 |
inputs = gr.Slider(0, 20, label='alpha', default=1)
|
39 |
-
outputs = gr.Plot()
|
40 |
title = "Effect of regularization using Ridge regression"
|
41 |
description = "Alpha is the regularization parameter which basically restricts model. The idea is that using regularization the model even if performs poorly on the training data, it would provide a better fit for generalizing data. Try out yourself by increasing or decreasing the value of alpha."
|
42 |
gr.Interface(fn = predict, inputs = inputs, outputs = outputs, title = title, description = description).launch()
|
|
|
36 |
return plt
|
37 |
|
38 |
inputs = gr.Slider(0, 20, label='alpha', default=1)
|
39 |
+
outputs = gr.Plot(show_label=True)
|
40 |
title = "Effect of regularization using Ridge regression"
|
41 |
description = "Alpha is the regularization parameter which basically restricts model. The idea is that using regularization the model even if performs poorly on the training data, it would provide a better fit for generalizing data. Try out yourself by increasing or decreasing the value of alpha."
|
42 |
gr.Interface(fn = predict, inputs = inputs, outputs = outputs, title = title, description = description).launch()
|