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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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],