Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def getColorMap(kernel, gamma):
|
|
34 |
aspect="auto",
|
35 |
origin="lower",
|
36 |
cmap=plt.cm.PuOr_r,
|
37 |
-
)
|
38 |
contours = plt.contour(xx, yy, Z, levels=[0], linewidths=2, linestyles="dashed")
|
39 |
plt.scatter(X[:, 0], X[:, 1], s=30, c=Y, cmap=plt.cm.Paired, edgecolors='k')
|
40 |
plt.title(f"Decision function for Non-Linear SVC with the {kernel} kernel and '{gamma}' gamma ", fontsize='14') #title
|
|
|
34 |
aspect="auto",
|
35 |
origin="lower",
|
36 |
cmap=plt.cm.PuOr_r,
|
37 |
+
).make_image(magnification=0.8, unsampled=False)
|
38 |
contours = plt.contour(xx, yy, Z, levels=[0], linewidths=2, linestyles="dashed")
|
39 |
plt.scatter(X[:, 0], X[:, 1], s=30, c=Y, cmap=plt.cm.Paired, edgecolors='k')
|
40 |
plt.title(f"Decision function for Non-Linear SVC with the {kernel} kernel and '{gamma}' gamma ", fontsize='14') #title
|