Update app.py
Browse files
app.py
CHANGED
|
@@ -29,6 +29,8 @@ y_predicted = knn.predict(xy)
|
|
| 29 |
#plt.pcolormesh(y_predicted.reshape(200, 200), cmap='jet')
|
| 30 |
plt.pcolormesh(xx, yy, y_predicted.reshape(200, 200), cmap='jet', alpha=0.2)
|
| 31 |
y_unique = np.unique(y_train)
|
|
|
|
|
|
|
| 32 |
for i in range(len(y_unique)):
|
| 33 |
plt.scatter(x_train[y_train == y_unique[i], 0],
|
| 34 |
x_train[y_train == y_unique[i], 1],
|
|
|
|
| 29 |
#plt.pcolormesh(y_predicted.reshape(200, 200), cmap='jet')
|
| 30 |
plt.pcolormesh(xx, yy, y_predicted.reshape(200, 200), cmap='jet', alpha=0.2)
|
| 31 |
y_unique = np.unique(y_train)
|
| 32 |
+
markers = '*x+'
|
| 33 |
+
colors = 'bgr'
|
| 34 |
for i in range(len(y_unique)):
|
| 35 |
plt.scatter(x_train[y_train == y_unique[i], 0],
|
| 36 |
x_train[y_train == y_unique[i], 1],
|