mirror of
https://github.com/gsi-upm/sitc
synced 2025-09-13 02:12:21 +00:00
h parameter can be changed
This commit is contained in:
@@ -58,7 +58,6 @@ def plot_dataset(X,y):
|
|||||||
plt.scatter(X[:,0], X[:,1], c=y, cmap=cm, lw=.5, s=10)
|
plt.scatter(X[:,0], X[:,1], c=y, cmap=cm, lw=.5, s=10)
|
||||||
|
|
||||||
def plot_decision_surface(X, y, classifier, h=0.02):
|
def plot_decision_surface(X, y, classifier, h=0.02):
|
||||||
h = .02
|
|
||||||
cm = plt.cm.RdBu
|
cm = plt.cm.RdBu
|
||||||
|
|
||||||
x_min, x_max = X[:, 0].min() - .5, X[:, 0].max() + .5
|
x_min, x_max = X[:, 0].min() - .5, X[:, 0].max() + .5
|
||||||
|
Reference in New Issue
Block a user