mirror of
https://github.com/wassname/ray.git
synced 2026-08-08 11:25:28 +08:00
Fix Python 2 bug in hyperopt example. (#575)
This commit is contained in:
committed by
Philipp Moritz
parent
179416e8a2
commit
b62693ca67
@@ -115,7 +115,7 @@ if __name__ == "__main__":
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user