0.18 version left with 0.19 suggestions commented

The previous version of the .fit( ) with the suggestion of how it should be done from the version 0.21.
This commit is contained in:
Chris Qlasty
2017-11-03 12:00:28 +01:00
committed by GitHub
parent a2b67bda3b
commit 2b76749832

View File

@@ -4636,9 +4636,16 @@
"}\n",
"\n",
"rnd_search = RandomizedSearchCV(DNNClassifier(random_state=42), param_distribs, n_iter=50,\n",
" fit_params={\"X_valid\": X_valid1, \"y_valid\": y_valid1, \"n_epochs\": 1000},\n",
" random_state=42, verbose=2)\n",
"fit_params={\"X_valid\": X_valid1, \"y_valid\": y_valid1, \"n_epochs\": 1000}\n",
"rnd_search.fit(X_train1, y_train1, **fit_params)"
"rnd_search.fit(X_train1, y_train1)"
"
"#fit_params as a constructor argument was deprecated in [scikit-learn] version 0.19 and will be removed\n",
"#in version 0.21. Pass fit parameters to the fit method instead:"
"#rnd_search = RandomizedSearchCV(DNNClassifier(random_state=42), param_distribs, n_iter=50,\n",
"# random_state=42, verbose=2)\n",
"#fit_params={\"X_valid\": X_valid1, \"y_valid\": y_valid1, \"n_epochs\": 1000}"
"#rnd_search.fit(X_train1, y_train1, **fit_params)"
]
},
{