Skip to content

Commit

Permalink
Add log message with best param
Browse files Browse the repository at this point in the history
  • Loading branch information
skylander86 committed Sep 27, 2017
1 parent 421b454 commit 3619a4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ycml/classifiers/gridsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def fit_binarized(self, X_featurized, Y_binarized, validation_data=None, **kwarg
param_scores = Parallel(n_jobs=self.n_jobs)(delayed(_fit_classifier)(klass, self.classifier_args, param, self.metric, X_train, Y_train, X_validation, Y_validation) for param in ParameterGrid(self.param_grid))

best_param, best_score = max(param_scores, key=lambda x: x[1])
logger.info('Best scoring param is {} with score {}.'.format(best_param, best_score))

classifier_args = {}
classifier_args.update(self.classifier_args)
Expand Down

0 comments on commit 3619a4f

Please sign in to comment.