Fix: 'hyperopt_adaptive' example keeps fake 'best_hyperparameters' (#883)

This commit is contained in:
Si-Yuan authored and Robert Nishihara committed 2017-08-28 22:47:16 -07:00
1 parent 4db45c9c54
commit 8099cdeb9d
1 file changed
+1 -1
+1 -1
View File
@@ -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):