Skip to content

Commit

Permalink
updated mimic fitness curve
Browse files Browse the repository at this point in the history
  • Loading branch information
domfrecent committed Mar 9, 2019
1 parent 3fbd890 commit f13d4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlrose/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ def mimic(problem, pop_size=200, keep_pct=0.2, max_attempts=10,
attempts += 1

if curve:
fitness_curve.append(problem.get_pop_fitness())
fitness_curve.append(problem.get_fitness())

best_fitness = problem.get_maximize()*problem.get_fitness()
best_state = problem.get_state().astype(int)
Expand Down

0 comments on commit f13d4ad

Please sign in to comment.