How to Solve ModuleNotFoundError: No module named ‘sklearn.grid_search‘

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: