From 679eb1e665b46e1bde45ab62a53912a9d0470f7a Mon Sep 17 00:00:00 2001 From: Heramb Kadam Date: Sat, 4 Mar 2017 08:18:50 +0530 Subject: [PATCH] Deprecation Warning \miniconda\lib\site-packages\sklearn\utils\validation.py:395 : DeprecationWarning : Passing 1d arrays as data is deprecated in 0.17 and will raise value error in 0.19 --- notebooks/03.1-Classification-SVMs.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/03.1-Classification-SVMs.ipynb b/notebooks/03.1-Classification-SVMs.ipynb index 2c37405..2d40de5 100644 --- a/notebooks/03.1-Classification-SVMs.ipynb +++ b/notebooks/03.1-Classification-SVMs.ipynb @@ -228,7 +228,7 @@ " P = np.zeros_like(X)\n", " for i, xi in enumerate(x):\n", " for j, yj in enumerate(y):\n", - " P[i, j] = clf.decision_function([xi, yj])\n", + " P[i, j] = clf.decision_function([[xi, yj]])\n", " # plot the margins\n", " ax.contour(X, Y, P, colors='k',\n", " levels=[-1, 0, 1], alpha=0.5,\n", @@ -483,4 +483,4 @@ "metadata": {} } ] -} \ No newline at end of file +}