Skip to content

Commit

Permalink
fix hyperopt
Browse files Browse the repository at this point in the history
  • Loading branch information
Balazs Kegl authored and Gabriel Hurtado committed Sep 10, 2019
1 parent b33e08c commit c970190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rampwf/hyperopt/hyperopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def _save_best_model(self):
best_defaults = official_scores.idxmax()
print('Best hyperparameters: ', best_defaults)
try:
for bd, h in zip(np.asarray(best_defaults), self.hyperparameters):
for bd, h in zip(best_defaults, self.hyperparameters):
h.set_default(bd)
except(TypeError):
# single hyperparameter
Expand Down

0 comments on commit c970190

Please sign in to comment.