MuskanMjn commited on
Commit
94a418d
·
1 Parent(s): 271c147

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def createPlotAndPlotPoint(x_new=9, y_new=9):
27
  # plot the line, the points, and the nearest vectors to the plane
28
  Z = clf.decision_function(np.c_[xx.ravel(), yy.ravel()])
29
  Z = Z.reshape(xx.shape)
30
-
31
  plt.title("Novelty Detection")
32
  plt.contourf(xx, yy, Z, levels=np.linspace(Z.min(), 0, 7), cmap=plt.cm.PuBu)
33
  a = plt.contour(xx, yy, Z, levels=[0], linewidths=3, colors="darkred")
 
27
  # plot the line, the points, and the nearest vectors to the plane
28
  Z = clf.decision_function(np.c_[xx.ravel(), yy.ravel()])
29
  Z = Z.reshape(xx.shape)
30
+ plt.figure()
31
  plt.title("Novelty Detection")
32
  plt.contourf(xx, yy, Z, levels=np.linspace(Z.min(), 0, 7), cmap=plt.cm.PuBu)
33
  a = plt.contour(xx, yy, Z, levels=[0], linewidths=3, colors="darkred")