diff --git a/sklearn/grid_search.py b/sklearn/grid_search.py index 236ef6f411492..65902c526540d 100644 --- a/sklearn/grid_search.py +++ b/sklearn/grid_search.py @@ -386,6 +386,10 @@ def __init__(self, estimator, scoring=None, def _estimator_type(self): return self.estimator._estimator_type + @property + def classes_(self): + return self.best_estimator_.classes_ + def score(self, X, y=None): """Returns the score on the given data, if the estimator has been refit.