From 2f0638946cc019eab6ca9361d0f42527310cd519 Mon Sep 17 00:00:00 2001 From: Oscar Araque Date: Thu, 26 Apr 2018 18:01:09 +0200 Subject: [PATCH] plot decision function parameter added --- ml3/spiral.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml3/spiral.py b/ml3/spiral.py index 5292aea..e53b373 100644 --- a/ml3/spiral.py +++ b/ml3/spiral.py @@ -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