Update app.py
Browse files
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'
|
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,
|
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')
|