mirror of
https://github.com/gsi-upm/sitc
synced 2024-11-21 22:12:30 +00:00
h parameter can be changed
This commit is contained in:
parent
2f0638946c
commit
1cec411527
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user