Zeel commited on
Commit
e9dc88a
·
1 Parent(s): 7598291

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -28,6 +28,7 @@ xy = np.c_[xx.ravel(), yy.ravel()]
28
  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
  for i in range(len(y_unique)):
32
  plt.scatter(x_train[y_train == y_unique[i], 0],
33
  x_train[y_train == y_unique[i], 1],
 
28
  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],