Tag Archives: Python data analysis and learning

[Solved] AttributeError : ‘GridSearchCV‘ object has no attribute ‘grid_scores_‘

The reason is that grid_scores_ has been deleted in version 0.20 of sklearn and replaced by cv_results_.

Method 1 (version 0.20 deleted):
grid_search.grid_scores_
method 2 (applicable to version 0.20):
means = grid_search.cv_results_[‘mean_test_score’]
params = grid_search.cv_results_[‘params’]