throw new EncogError("Must have at least one output for NEAT.");
}
final Map<String, String> args = ArchitectureParse.parseParams(architecture);
final ParamsHolder holder = new ParamsHolder(args);
final int populationSize = holder.getInt(
MLMethodFactory.PROPERTY_POPULATION_SIZE, false, 1000);
final int cycles = holder.getInt(
MLMethodFactory.PROPERTY_CYCLES, false, NEATPopulation.DEFAULT_CYCLES);
ActivationFunction af = this.factory.create(
holder.getString(MLMethodFactory.PROPERTY_AF, false, MLActivationFactory.AF_SSIGMOID));
NEATPopulation pop = new NEATPopulation(input,output,populationSize);
pop.reset();
pop.setActivationCycles(cycles);
pop.setNEATActivationFunction(af);