Generation Vs Error Plot #36
Closed
p-suresh-kumar
started this conversation in
General
Replies: 1 comment
-
There is only function to plot the generation vs fitness. If you want to see plot the graph of the error not the fitness, then here is how you can do it for the The best_solutions_error = 1.0 / numpy.array(ga_instance.best_solutions_fitness) Then show the graph: matplotlib.pyplot.plot(best_solutions_error)
matplotlib.pyplot.show() That should work. Please let me know if you have any doubts. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear GAD,
is there any function to plot generation vs error plot,
or how to find the error at each generation?
Beta Was this translation helpful? Give feedback.
All reactions