ec.app.sequence
Class HallOfFame
java.lang.Object
ec.app.sequence.HallOfFame
public class HallOfFame
- extends java.lang.Object
This is our simple implementation of Hall of Fame to capture good individuals from the run.
It writes to the file instead of holding in memory to be crash safe.
- Author:
- udaykamath
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HallOfFame
public HallOfFame()
setup
public void setup(java.lang.String fileName)
addTopPopulationToHallOfFame
public void addTopPopulationToHallOfFame(ec.EvolutionState state,
ec.gp.GPIndividual[] inds,
int size)
flushToFile
public void flushToFile(ec.EvolutionState state,
java.lang.String fileName)