Access Past Runs - danielwilczak101/EasyGA GitHub Wiki

To see your past runs of your genetic algorithms. You can run a simple function that will give you a basic summery. This data comes from the config table.

import EasyGA

# Create the genetic algorithm
ga = EasyGA.GA()

# Prints out summery of past runs
ga.database.past_runs()

Output:

A summery of your past runs in the database.

  id    chromosome_length    population_size    generation_goal
----  -------------------  -----------------  -----------------
   1                   10                 10                 20
   2                   10                  5                 20

This is good because you can graph old runs that have been saved in the database. This functionality is built into the graph functions.

import EasyGA

# Create the genetic algorithm
ga = EasyGA.GA()

ga.graph.generation_total_fitness(1)
ga.graph.show()

The one represents the first one ran. If you don't put a number here it defaults to the most recent run id (aka the highest number).

Config Example Graph