I'm trying to chart a plot of the best value evolution on a GA over time. I'm trying to use matplotlib to do it, and I'm using pyevolve for the GA. My problem is that when I call the evolve function, it evolves the algorithm till the end and I have no way of getting the best value in each interation. Any ideas?
Asked
Active
Viewed 136 times
1 Answers
0
Pyevolve already has a plotting tool, which uses the data dumped to a database using functionality built-in to pyevolve. Probably it fits your use case.
Otherwise, you could setup a step callback, in which you collect your own statistics for latter processing.

memoselyk
- 3,993
- 1
- 17
- 28
-
Thank you! I think this is exactly what I need! – user3431182 Nov 25 '15 at 01:45
-
do you happen to know the answer to this question? http://stackoverflow.com/questions/33924153/how-to-use-step-callback-function-to-alter-all-the-fitness-values-of-current-gen – user3431182 Nov 25 '15 at 19:19