dannyhammer / TwoPlayerGames

Undergraduate research into the mechanics of simple two-player games.
3 stars 2 forks source link

Store evolution data in DataFrames #98

Open dannyhammer opened 3 years ago

dannyhammer commented 3 years ago

Currently, the evolve() method in GeneticAlgorithm returns two lists- one list for each population.

Change this to return a DataFrame (or pair of DataFrames) somehow. DataFrames provide more methods for working with and are more easily parsed. We could set it up so that each row in the DataFrame corresponds to a single Player. Fields such as Player ID, generation, which child of a generation it was, vertex ordering, color ordering, fitness, wins, losses, and others can be added so that each row contains easily-parsed information that will be valuable for us when running tests.