From 8099cdeb9d18ea731bb92b7c1de5b47f5ef9abdb Mon Sep 17 00:00:00 2001 From: Si-Yuan Date: Mon, 28 Aug 2017 22:47:16 -0700 Subject: [PATCH] Fix: 'hyperopt_adaptive' example keeps fake 'best_hyperparameters' (#883) --- 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 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):