Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sklearn/grid_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down