org.encog.neural.neat.training
Class NEATNeuronGene
- java.lang.Object
-
- org.encog.neural.neat.training.NEATBaseGene
-
- org.encog.neural.neat.training.NEATNeuronGene
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<NEATBaseGene>
public class NEATNeuronGene extends NEATBaseGene implements java.io.Serializable
Implements a NEAT neuron gene. NeuroEvolution of Augmenting Topologies (NEAT) is a genetic algorithm for the generation of evolving artificial neural networks. It was developed by Ken Stanley while at The University of Texas at Austin. ----------------------------------------------------------------------------- http://www.cs.ucf.edu/~kstanley/ Encog's NEAT implementation was drawn from the following three Journal Articles. For more complete BibTeX sources, see NEATNetwork.java. Evolving Neural Networks Through Augmenting Topologies Generating Large-Scale Neural Networks Through Discovering Geometric Regularities Automatic feature selection in neuroevolution- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description NEATNeuronGene()The default constructor.NEATNeuronGene(NEATNeuronGene other)Construct this gene by comping another.NEATNeuronGene(NEATNeuronType type, ActivationFunction theActivationFunction, long id, long innovationID)Construct a neuron gene.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcopy(NEATNeuronGene gene)Copy another gene to this one.ActivationFunctiongetActivationFunction()NEATNeuronTypegetNeuronType()voidsetActivationFunction(ActivationFunction activationFunction)voidsetNeuronType(NEATNeuronType neuronType)Set the neuron type.java.lang.StringtoString()-
Methods inherited from class org.encog.neural.neat.training.NEATBaseGene
compareTo, getId, getInnovationId, setId, setInnovationId
-
-
-
-
Constructor Detail
-
NEATNeuronGene
public NEATNeuronGene()
The default constructor.
-
NEATNeuronGene
public NEATNeuronGene(NEATNeuronType type, ActivationFunction theActivationFunction, long id, long innovationID)
Construct a neuron gene.- Parameters:
type- The neuron type.theActivationFunction- The activation function.id- The neuron id.innovationID- The innovation id.
-
NEATNeuronGene
public NEATNeuronGene(NEATNeuronGene other)
Construct this gene by comping another.- Parameters:
other- The other gene to copy.
-
-
Method Detail
-
copy
public void copy(NEATNeuronGene gene)
Copy another gene to this one.- Parameters:
gene- The other gene.
-
getNeuronType
public NEATNeuronType getNeuronType()
- Returns:
- The type for this neuron.
-
setNeuronType
public void setNeuronType(NEATNeuronType neuronType)
Set the neuron type.- Parameters:
neuronType- The neuron type.
-
getActivationFunction
public ActivationFunction getActivationFunction()
- Returns:
- the activationFunction
-
setActivationFunction
public void setActivationFunction(ActivationFunction activationFunction)
- Parameters:
activationFunction- the activationFunction to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG