Skip to content

Commit

Permalink
Changed starter value of best score to -inf
Browse files Browse the repository at this point in the history
  • Loading branch information
zickyzazang authored Oct 12, 2016
1 parent e6a02ec commit 2f71359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evolutionary_search/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def __init__(self, estimator, params, scoring=None, cv=4,

def fit(self, X, y=None):
self.best_estimator_ = None
self.best_score_ = -1
self.best_score_ = float("-inf")
self.best_params_ = None
for possible_params in self.possible_params:
self._fit(X, y, possible_params)
Expand Down

0 comments on commit 2f71359

Please sign in to comment.