public class AgentSaver
extends java.lang.Object
Constructor and Description |
---|
AgentSaver(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static java.lang.String |
dataToString(int gen,
float fitness,
float[] genome) |
AgentConfig |
load(int which)
Will return the first agent found with the specified generation
|
void |
save(int gen,
float fitness,
float[] genome)
Save agent into file
|
public void save(int gen, float fitness, float[] genome)
gen
- fitness
- genome
- java.io.IOException
public static java.lang.String dataToString(int gen, float fitness, float[] genome)
public AgentConfig load(int which)
which
- generation when the agent has been savedjava.io.IOException
public void close()