Shamima commited on
Commit
ea98520
·
1 Parent(s): d60dc04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()