diff --git a/examples/hyperopt/hyperopt_adaptive.py b/examples/hyperopt/hyperopt_adaptive.py index 12357e7dc..727fdfcb6 100644 --- a/examples/hyperopt/hyperopt_adaptive.py +++ b/examples/hyperopt/hyperopt_adaptive.py @@ -105,7 +105,7 @@ if __name__ == "__main__": # Update the best accuracy and best hyperparameters. if accuracy > best_accuracy: - best_hyperparameters = hyperparameters + best_hyperparameters = previous_info["hyperparameters"] best_accuracy = accuracy if is_promising(previous_info):