1
0
mirror of https://github.com/gsi-upm/sitc synced 2024-11-22 06:22:29 +00:00

plot decision function parameter added

This commit is contained in:
Oscar Araque 2018-04-26 18:01:09 +02:00
parent 38bf59bec3
commit 2f0638946c

View File

@ -57,7 +57,7 @@ def plot_dataset(X,y):
cm = plt.cm.RdBu
plt.scatter(X[:,0], X[:,1], c=y, cmap=cm, lw=.5, s=10)
def plot_decision_surface(X, y, classifier):
def plot_decision_surface(X, y, classifier, h=0.02):
h = .02
cm = plt.cm.RdBu