From bc8179373308f64b1a26ea6f391dbdfdbb2b67cd Mon Sep 17 00:00:00 2001 From: Genevieve Hayes Date: Sun, 3 Nov 2019 14:27:27 +1100 Subject: [PATCH] Remove unnecessary white space from algorithms.py --- mlrose/algorithms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlrose/algorithms.py b/mlrose/algorithms.py index 98e434bf..102da61c 100644 --- a/mlrose/algorithms.py +++ b/mlrose/algorithms.py @@ -87,14 +87,14 @@ def hill_climb(problem, max_iters=np.inf, restarts=0, init_state=None, problem.find_neighbors() next_state = problem.best_neighbor() next_fitness = problem.eval_fitness(next_state) - + # If best neighbor is an improvement, move to that state if next_fitness > problem.get_fitness(): problem.set_state(next_state) else: break - + if curve: fitness_curve.append(problem.get_fitness())