Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,7 @@ def draw_polynomial(degree=2):
|
|
| 90 |
plt.xlabel("Parameters", fontsize=14)
|
| 91 |
plt.ylabel("Values", fontsize=14)
|
| 92 |
plt.xticks([i+1 for i in range(0, len(lin_reg.coef_[0]))], [i+1 for i in range(0, len(lin_reg.coef_[0]))])
|
| 93 |
-
plt.xlim(0,len(lin_reg.coef_[0])+
|
| 94 |
|
| 95 |
|
| 96 |
#plt.show()
|
|
@@ -100,7 +100,7 @@ def draw_polynomial(degree=2):
|
|
| 100 |
|
| 101 |
|
| 102 |
#### Define input component
|
| 103 |
-
input_degree = gr.inputs.Slider(1,
|
| 104 |
|
| 105 |
#### Define output component
|
| 106 |
set_output = gr.outputs.Dataframe(type='pandas', label ='Evaluation Results')
|
|
|
|
| 90 |
plt.xlabel("Parameters", fontsize=14)
|
| 91 |
plt.ylabel("Values", fontsize=14)
|
| 92 |
plt.xticks([i+1 for i in range(0, len(lin_reg.coef_[0]))], [i+1 for i in range(0, len(lin_reg.coef_[0]))])
|
| 93 |
+
plt.xlim(0,len(lin_reg.coef_[0])+1)
|
| 94 |
|
| 95 |
|
| 96 |
#plt.show()
|
|
|
|
| 100 |
|
| 101 |
|
| 102 |
#### Define input component
|
| 103 |
+
input_degree = gr.inputs.Slider(1, 35, step=1, default=2, label='Degree of Polynomial Regression')
|
| 104 |
|
| 105 |
#### Define output component
|
| 106 |
set_output = gr.outputs.Dataframe(type='pandas', label ='Evaluation Results')
|