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