How to Solve ModuleNotFoundError: No module named ‘sklearn.grid_search‘
Problem solving
ModuleNotFoundError: No module named ‘sklearn.grid_search’
Solution
ModuleNotFoundError: no module named ‘sklearn.grid_search’
Solution
Change
from sklearn.grid_search import GridSearchCV
to
from sklearn.model_selection import GridSearchCV
Done!
Similar Posts:
- Python Error – (sklearn) ImportError: No module named cross_validation
- No module named ‘sklearn.model_selection [How to Solve]
- Pycharm Error: ImportError: No module named model_selection
- Problems and solutions in running tensorflow
- Pyinstaller publishes exe and pops up failed to execute script main
- AttributeError: ‘_csv.reader’ object has no attribute ‘next’ [How to Solve]
- [Solved] pydotplus generate iris.pdf error: InvocationException: GraphViz’s executables not found
- ModuleNotFoundError: No module named ‘utils’ [How to Solve]
- Python for mac or windows: ModuleNotFoundError: No module named ‘lxml’ [How to Solve]
- [Solved] Python3 Error: ModuleNotFoundError: No module named ‘_bz2’