|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.neural.neat.training.NEATBaseGene
org.encog.neural.neat.training.NEATLinkGene
public class NEATLinkGene
Implements a NEAT link gene. This describes a way in which two neurons are linked. 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
Constructor Summary | |
---|---|
NEATLinkGene()
Default constructor, used mainly for persistence. |
|
NEATLinkGene(long fromNeuronID,
long toNeuronID,
boolean enabled,
long innovationID,
double weight)
Construct a NEAT link gene. |
|
NEATLinkGene(NEATLinkGene other)
|
Method Summary | |
---|---|
void |
copy(NEATLinkGene gene)
Copy from another gene. |
long |
getFromNeuronID()
|
long |
getToNeuronID()
|
double |
getWeight()
|
boolean |
isEnabled()
|
void |
setEnabled(boolean e)
|
void |
setFromNeuronID(int i)
Set the from neuron id. |
void |
setToNeuronID(int i)
Set the to neuron id. |
void |
setWeight(double weight)
Set the weight of this connection. |
String |
toString()
|
Methods inherited from class org.encog.neural.neat.training.NEATBaseGene |
---|
compareTo, getId, getInnovationId, setId, setInnovationId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NEATLinkGene()
public NEATLinkGene(long fromNeuronID, long toNeuronID, boolean enabled, long innovationID, double weight)
fromNeuronID
- The source neuron.toNeuronID
- The target neuron.enabled
- Is this link enabled.innovationID
- The innovation id.weight
- The weight.public NEATLinkGene(NEATLinkGene other)
Method Detail |
---|
public void copy(NEATLinkGene gene)
gene
- The other gene.public long getFromNeuronID()
public long getToNeuronID()
public double getWeight()
public void setWeight(double weight)
weight
- The connection weight.public String toString()
toString
in class Object
public void setFromNeuronID(int i)
i
- The from neuron id.public void setToNeuronID(int i)
i
- The to neuron id.public boolean isEnabled()
public void setEnabled(boolean e)
e
- True, if this gene is enabled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |