Skip to content

Commit cd70f52

Browse files
committed
use .reshape(1, -1) for single sample in new sklearn to avoid depr warning
1 parent f677447 commit cd70f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/ch03/ch03.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@
675675
},
676676
"outputs": [],
677677
"source": [
678-
"if Version(sklearn_version) < '0.18':\n",
678+
"if Version(sklearn_version) < '0.17':\n",
679679
" lr.predict_proba(X_test_std[0, :])\n",
680680
"else:\n",
681681
" lr.predict_proba(X_test_std[0, :].reshape(1, -1))"

0 commit comments

Comments
 (0)