Spaces:
Sleeping
Sleeping
Edit app.py
Browse files
app.py
CHANGED
|
@@ -121,7 +121,7 @@ def logReg(a, epoch, progress):
|
|
| 121 |
).properties(
|
| 122 |
title='Plot of loss values over number of iterations'
|
| 123 |
)
|
| 124 |
-
|
| 125 |
plt.figure()
|
| 126 |
plt.plot(x1[1:100],x2[1:100],'x', x1[101:200], x2[101:200],'x') # plot random data points
|
| 127 |
plt.plot(x1, -(x1*wb[0,1] + wb[0,0])/wb[0,2] , linestyle = 'solid') # plot decision boundary
|
|
@@ -212,7 +212,8 @@ def linReg(a, epoch, progress):
|
|
| 212 |
)
|
| 213 |
|
| 214 |
# plot
|
| 215 |
-
plt.
|
|
|
|
| 216 |
plt.scatter(x,y,s=ite)
|
| 217 |
plt.plot(x, w[0,1] + (w[0,0] * x), linestyle='solid')
|
| 218 |
plt.xlabel('x')
|
|
@@ -220,7 +221,7 @@ def linReg(a, epoch, progress):
|
|
| 220 |
plt.title('Plot of random data values with linear regression line')
|
| 221 |
plt.savefig("plt1.png")
|
| 222 |
|
| 223 |
-
plt.figure(
|
| 224 |
plt.plot(jList)
|
| 225 |
plt.xlabel('Number of Iterations')
|
| 226 |
plt.ylabel('Loss Value')
|
|
|
|
| 121 |
).properties(
|
| 122 |
title='Plot of loss values over number of iterations'
|
| 123 |
)
|
| 124 |
+
plt.close()
|
| 125 |
plt.figure()
|
| 126 |
plt.plot(x1[1:100],x2[1:100],'x', x1[101:200], x2[101:200],'x') # plot random data points
|
| 127 |
plt.plot(x1, -(x1*wb[0,1] + wb[0,0])/wb[0,2] , linestyle = 'solid') # plot decision boundary
|
|
|
|
| 212 |
)
|
| 213 |
|
| 214 |
# plot
|
| 215 |
+
plt.close()
|
| 216 |
+
plt.figure()
|
| 217 |
plt.scatter(x,y,s=ite)
|
| 218 |
plt.plot(x, w[0,1] + (w[0,0] * x), linestyle='solid')
|
| 219 |
plt.xlabel('x')
|
|
|
|
| 221 |
plt.title('Plot of random data values with linear regression line')
|
| 222 |
plt.savefig("plt1.png")
|
| 223 |
|
| 224 |
+
plt.figure()
|
| 225 |
plt.plot(jList)
|
| 226 |
plt.xlabel('Number of Iterations')
|
| 227 |
plt.ylabel('Loss Value')
|