org.encog.neural.pattern
Class RadialBasisPattern
- java.lang.Object
-
- org.encog.neural.pattern.RadialBasisPattern
-
- All Implemented Interfaces:
- NeuralNetworkPattern
public class RadialBasisPattern extends java.lang.Object implements NeuralNetworkPattern
A radial basis function (RBF) network uses several radial basis functions to provide a more dynamic hidden layer activation function than many other types of neural network. It consists of a input, output and hidden layer.
-
-
Constructor Summary
Constructors Constructor and Description RadialBasisPattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddHiddenLayer(int count)Add the hidden layer, this should be called once, as a RBF has a single hidden layer.voidclear()Clear out any hidden neurons.MLMethodgenerate()Generate the RBF network.voidsetActivationFunction(ActivationFunction activation)Set the activation function, this is an error.voidsetInputNeurons(int count)Set the number of input neurons.voidsetOutputNeurons(int count)Set the number of output neurons.voidsetRBF(RBFEnum type)
-
-
-
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:
addHiddenLayerin interfaceNeuralNetworkPattern- Parameters:
count- The number of neurons in the hidden layer.
-
clear
public void clear()
Clear out any hidden neurons.- Specified by:
clearin interfaceNeuralNetworkPattern
-
generate
public MLMethod generate()
Generate the RBF network.- Specified by:
generatein interfaceNeuralNetworkPattern- Returns:
- The neural network.
-
setActivationFunction
public void setActivationFunction(ActivationFunction activation)
Set the activation function, this is an error. The activation function may not be set on a RBF layer.- Specified by:
setActivationFunctionin interfaceNeuralNetworkPattern- Parameters:
activation- The new activation function.
-
setInputNeurons
public void setInputNeurons(int count)
Set the number of input neurons.- Specified by:
setInputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- The number of input neurons.
-
setOutputNeurons
public void setOutputNeurons(int count)
Set the number of output neurons.- Specified by:
setOutputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- The number of output neurons.
-
setRBF
public void setRBF(RBFEnum type)
-
-
DMelt 3.0 © DataMelt by jWork.ORG