The Rastrigin function: plotting results

We are going to make the following plots for the results of the evolution stored in the database:

  • Error bars graph (raw scores).
  • Error bars graph (fitness scores).
  • Max/min/avg/std. dev. graph (raw scores).
  • Max/min/avg/std. dev. graph (fitness scores).
  • Raw and Fitness min/max difference graph.
  • Heat map of population raw score distribution.

In [ ]:
%matplotlib inline
from pyevolve_plot import plot_errorbars_raw, plot_errorbars_fitness, \
                          plot_maxmin_raw, plot_maxmin_fitness, \
                          plot_diff_raw, plot_pop_heatmap_raw

In [ ]:
plot_errorbars_raw('rastrigin.db','ex1')

In [ ]:
plot_errorbars_fitness('rastrigin.db','ex1')

In [ ]:
plot_maxmin_raw('rastrigin.db','ex1')

In [ ]:
plot_maxmin_raw('rastrigin.db','ex1')

In [ ]:
plot_diff_raw('rastrigin.db','ex1')

In [ ]:
plot_pop_heatmap_raw('rastrigin.db','ex1')

In [ ]: