public class Evolver
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected NetEvolver |
netEvolver
The net evolution master.
|
protected TrainEvolver |
trainEvolver
The training infrastructure evolution master.
|
Modifier | Constructor and Description |
---|---|
protected |
Evolver() |
|
Evolver(NeuralNet template,
FitnessFunction ff)
Creates the Evolver for network evolution only.
|
|
Evolver(NeuralNet template,
PatternSet patterns,
FitnessFunction ff)
Creates the Evolver for network and training evolution.
|
|
Evolver(SpikingNeuralNet template,
FitnessFunction ff)
Creates the evolver for a spiking neural network.
|
Modifier and Type | Method and Description |
---|---|
void |
addFeature(Feature feature)
Adds a feature to the feature list.
|
void |
develop(java.util.List<Chromosome> chromosomes)
Develops the given list of chromosomes into a neural network and training infrastructure depending on
the features to be evolved.
|
FitnessFunction |
getFitnessFunction()
Returns the fitness function.
|
NetEvolver |
getNetEvolver()
Returns the net evolver.
|
TrainEvolver |
getTrainEvolver()
Returns the train evolver.
|
void |
prepare()
Prepares net evolution.
|
java.lang.String |
toString()
Build a string describing the evolution setup and the chromosome structure.
|
protected NetEvolver netEvolver
protected TrainEvolver trainEvolver
public Evolver(NeuralNet template, FitnessFunction ff)
template
- the network template as a base for evolutionff
- the fitness functionpublic Evolver(NeuralNet template, PatternSet patterns, FitnessFunction ff)
template
- the network template as a base for evolutionpatterns
- a pattern set for network trainingff
- the fitness functionpublic Evolver(SpikingNeuralNet template, FitnessFunction ff)
template
- an SNN templateff
- a fitness functionprotected Evolver()
public NetEvolver getNetEvolver()
public TrainEvolver getTrainEvolver()
public FitnessFunction getFitnessFunction()
public void prepare()
public void addFeature(Feature feature)
feature
- a specific feature to be evolvedpublic void develop(java.util.List<Chromosome> chromosomes)
chromosomes
- a list of chromosomespublic java.lang.String toString()
toString
in class java.lang.Object