org.encog.neural.neat
Class NEATNeuron
java.lang.Object
org.encog.neural.neat.NEATNeuron
- All Implemented Interfaces:
- Serializable
public class NEATNeuron
- extends Object
- implements Serializable
Implements a NEAT neuron. Neat neurons are of a specific type, defined by the
NEATNeuronType enum. Usually NEAT uses a sigmoid activation function. The
activation response is used to allow the slope of the sigmoid to be evolved.
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/
- See Also:
- Serialized Form
|
Constructor Summary |
NEATNeuron()
Default constructor, used for persistence. |
NEATNeuron(NEATNeuronType neuronType,
long neuronID,
double splitY,
double splitX)
Construct a NEAT neuron. |
NEURON_ID
public static final String NEURON_ID
- See Also:
- Constant Field Values
NEATNeuron
public NEATNeuron()
- Default constructor, used for persistence.
NEATNeuron
public NEATNeuron(NEATNeuronType neuronType,
long neuronID,
double splitY,
double splitX)
- Construct a NEAT neuron.
- Parameters:
neuronType - The type of neuron.neuronID - The id of the neuron.splitY - The split for y.splitX - THe split for x.activationResponse - The activation response.
getInboundLinks
public List<NEATLink> getInboundLinks()
- Returns:
- the inbound links.
getNeuronID
public long getNeuronID()
- Returns:
- The neuron id.
getNeuronType
public NEATNeuronType getNeuronType()
- Returns:
- the neuron type.
getOutput
public double getOutput()
- Returns:
- The output from this neuron.
getOutputboundLinks
public List<NEATLink> getOutputboundLinks()
- Returns:
- The outbound links.
getPosX
public int getPosX()
- Returns:
- The x position.
getPosY
public int getPosY()
- Returns:
- The y position.
getSplitX
public double getSplitX()
- Returns:
- The split x.
getSplitY
public double getSplitY()
- Returns:
- The split y.
getSumActivation
public double getSumActivation()
- Returns:
- The sum activation.
setOutput
public void setOutput(double output)
- Set the output.
- Parameters:
output - The output of the neuron.
toString
public String toString()
-
- Overrides:
toString in class Object
string2NeuronType
public static NEATNeuronType string2NeuronType(String t)
neuronType2String
public static String neuronType2String(NEATNeuronType t)
Copyright © 2012. All Rights Reserved.