throw new TrainingError("Population can not be empty.");
}
final NEATGenome genome = (NEATGenome) population.getGenomes().get(0);
setCalculateScore(new GeneticScoreAdapter(calculateScore));
setComparator(new GenomeComparator(getCalculateScore()));
setPopulation(population);
this.inputCount = genome.getInputCount();
this.outputCount = genome.getOutputCount();
init();