Skip to content

Commit

Permalink
Merge pull request #13 from zickyzazang/patch-1
Browse files Browse the repository at this point in the history
Changed starter value of best score to -inf
  • Loading branch information
rsteca authored Oct 12, 2016
2 parents e6a02ec + 2f71359 commit c736b7e
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 c736b7e

Please sign in to comment.