org.encog.neural.pattern
Class NEATPattern

java.lang.Object
  extended by org.encog.neural.pattern.NEATPattern
All Implemented Interfaces:
NeuralNetworkPattern

public class NEATPattern
extends Object
implements NeuralNetworkPattern


Constructor Summary
NEATPattern()
           
 
Method Summary
 void addHiddenLayer(int count)
          Add the hidden layer, this should be called once, as a RBF has a single hidden layer.
 void clear()
          Clear out any hidden neurons.
 BasicNetwork generate()
          Generate the RBF network.
 List<NEATNeuron> getNeurons()
           
 boolean isSnapshot()
           
 void setActivationFunction(ActivationFunction activation)
          Set the activation function to use on the output layer.
 void setInputNeurons(int count)
          Set the number of input neurons.
 void setNEATActivationFunction(ActivationFunction activation)
          Set the activation function to use on the NEAT neurons.
 void setOutputNeurons(int count)
          Set the number of output neurons.
 void setSnapshot(boolean snapshot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NEATPattern

public NEATPattern()
Method Detail

addHiddenLayer

public void addHiddenLayer(int count)
Add the hidden layer, this should be called once, as a RBF has a single hidden layer.

Specified by:
addHiddenLayer in interface NeuralNetworkPattern
Parameters:
count - The number of neurons in the hidden layer.

clear

public void clear()
Clear out any hidden neurons.

Specified by:
clear in interface NeuralNetworkPattern

generate

public BasicNetwork generate()
Generate the RBF network.

Specified by:
generate in interface NeuralNetworkPattern
Returns:
The neural network.

setActivationFunction

public void setActivationFunction(ActivationFunction activation)
Set the activation function to use on the output layer.

Specified by:
setActivationFunction in interface NeuralNetworkPattern
Parameters:
activation - The new activation function.

setNEATActivationFunction

public void setNEATActivationFunction(ActivationFunction activation)
Set the activation function to use on the NEAT neurons.

Parameters:
activation - The new activation function.

setInputNeurons

public void setInputNeurons(int count)
Set the number of input neurons.

Specified by:
setInputNeurons in interface NeuralNetworkPattern
Parameters:
count - The number of input neurons.

setOutputNeurons

public void setOutputNeurons(int count)
Set the number of output neurons.

Specified by:
setOutputNeurons in interface NeuralNetworkPattern
Parameters:
count - The number of output neurons.

isSnapshot

public boolean isSnapshot()

setSnapshot

public void setSnapshot(boolean snapshot)

getNeurons

public List<NEATNeuron> getNeurons()


Copyright © 2011. All Rights Reserved.