When I wrote the code and compiled it with the intention of using scikit-learn's grid search with python (ver 3.6.1), something got stuck and a warning came out.
↓ I wrote it in the source and got caught.
from sklearn.grid_search import GridSearchCV
↓ Warning that came out after compiling (By the way, I am doing it on Mac)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sklearn/cross_validation.py:
44: DeprecationWarning:
This module was deprecated in version 0.18 in favor of the model_selection module into
which all the refactored classes and functions are moved.
Also note that the interface of the new CV iterators are different from that of this module.
This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sklearn/grid_search.py:
43: DeprecationWarning:
This module was deprecated in version 0.18 in favor of the model_selection module into
which all the refactored classes and functions are moved. This module will be removed in 0.20.
DeprecationWarning)
When the Warning is deciphered, it seems that it was deleted when the module version went up from "0.18" to "0.20"? After trying various things with a kettle, I was able to use it safely by playing with the description of the python source.
from sklearn.model_selection import GridSearchCV
If you stumble in a similar place, please try it!
Recommended Posts