Skip to content

Commit

Permalink
Fix Python 2 bug in hyperopt example. (ray-project#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertnishihara authored and pcmoritz committed May 19, 2017
1 parent 179416e commit b62693c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/hyperopt/hyperopt_adaptive.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def generate_hyperparameters():
new_hyperparameters = previous_info["hyperparameters"]
new_info = {"hyperparameters": new_hyperparameters,
"total_num_steps": previous_info["total_num_steps"] + steps,
"accuracies": previous_info["accuracies"].copy()}
"accuracies": previous_info["accuracies"][:]}
starting_weights = weights
else:
# If the experiment does not look promising, start a new experiment.
Expand Down

0 comments on commit b62693c

Please sign in to comment.