Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,9 +86,12 @@ def draw_polynomial(degree=2):
|
|
| 86 |
|
| 87 |
plt.subplot(2,1,2)
|
| 88 |
|
| 89 |
-
plt.plot([i for i in range(0, len(lin_reg.coef_[0]))], lin_reg.coef_[0], 'r-')
|
| 90 |
plt.xlabel("Parameters", fontsize=14)
|
| 91 |
plt.ylabel("Values", fontsize=14)
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
#plt.show()
|
| 94 |
fig.tight_layout()
|
|
|
|
| 86 |
|
| 87 |
plt.subplot(2,1,2)
|
| 88 |
|
| 89 |
+
plt.plot([i+1 for i in range(0, len(lin_reg.coef_[0]))], lin_reg.coef_[0], 'r-')
|
| 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])+3)
|
| 94 |
+
|
| 95 |
|
| 96 |
#plt.show()
|
| 97 |
fig.tight_layout()
|