sulpha commited on
Commit
b74e3c1
1 Parent(s): 4ed06b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ def make_plot(alpha,max_iter,Standardize):
45
 
46
  clf = SGDClassifier(alpha=alpha, max_iter=max_iter).fit(X, y)
47
  accuracy = clf.score(X,y)
48
- acc = f'## The Accuracy on the entire dataset: {accuracy}'
49
  ax = plt.gca()
50
  DecisionBoundaryDisplay.from_estimator(
51
  clf,
@@ -112,7 +112,7 @@ with gr.Blocks(title=title) as demo:
112
 
113
  gr.Markdown(model_card)
114
  d0 = gr.Slider(0.001,5,step=0.001,value=0.001,label='alpha')
115
- d1 = gr.Slider(1,1000,step=10,value=100,label='max_iter')
116
  d2 = gr.Checkbox(value=True,label='Standardize')
117
 
118
  btn =gr.Button(value='Submit')
 
45
 
46
  clf = SGDClassifier(alpha=alpha, max_iter=max_iter).fit(X, y)
47
  accuracy = clf.score(X,y)
48
+ acc = f'### The Accuracy on the entire dataset: {accuracy}'
49
  ax = plt.gca()
50
  DecisionBoundaryDisplay.from_estimator(
51
  clf,
 
112
 
113
  gr.Markdown(model_card)
114
  d0 = gr.Slider(0.001,5,step=0.001,value=0.001,label='alpha')
115
+ d1 = gr.Slider(1,1001,step=10,value=100,label='max_iter')
116
  d2 = gr.Checkbox(value=True,label='Standardize')
117
 
118
  btn =gr.Button(value='Submit')