Update app.py
Browse files
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")
|