From b62693ca6749d6802a26836cc4911453f5b65d47 Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Fri, 19 May 2017 16:12:13 -0700 Subject: [PATCH] Fix Python 2 bug in hyperopt example. (#575) --- examples/hyperopt/hyperopt_adaptive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/hyperopt/hyperopt_adaptive.py b/examples/hyperopt/hyperopt_adaptive.py index a2620e293..d0411e746 100644 --- a/examples/hyperopt/hyperopt_adaptive.py +++ b/examples/hyperopt/hyperopt_adaptive.py @@ -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.