Move to sklearn 0.18
parent
5ebea6604c
commit
40c264d088
|
@ -711,7 +711,7 @@
|
|||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from sklearn.cross_validation import train_test_split\n",
|
||||
"from sklearn.model_selection import train_test_split\n",
|
||||
"from sklearn.datasets import fetch_mldata\n",
|
||||
"\n",
|
||||
"mnist = fetch_mldata('MNIST original')\n",
|
||||
|
@ -1053,7 +1053,7 @@
|
|||
"source": [
|
||||
"from sklearn.pipeline import Pipeline\n",
|
||||
"from sklearn.linear_model import LogisticRegression\n",
|
||||
"from sklearn.grid_search import GridSearchCV\n",
|
||||
"from sklearn.model_selection import GridSearchCV\n",
|
||||
"\n",
|
||||
"clf = Pipeline([\n",
|
||||
" (\"kpca\", KernelPCA(n_components=2)),\n",
|
||||
|
@ -1322,7 +1322,7 @@
|
|||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.5.1"
|
||||
"version": "3.5.2"
|
||||
},
|
||||
"nav_menu": {
|
||||
"height": "352px",
|
||||
|
|
Loading…
Reference in New Issue