org.encog.neural.pattern
Class BoltzmannPattern
- java.lang.Object
-
- org.encog.neural.pattern.BoltzmannPattern
-
- All Implemented Interfaces:
- NeuralNetworkPattern
public class BoltzmannPattern extends java.lang.Object implements NeuralNetworkPattern
Pattern to create a Boltzmann machine.
-
-
Constructor Summary
Constructors Constructor and Description BoltzmannPattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddHiddenLayer(int count)Not supported, will throw an exception, Boltzmann networks have no hidden layers.voidclear()Clear any properties set on this network.MLMethodgenerate()Generate the network.intgetAnnealCycles()intgetRunCycles()doublegetTemperature()voidsetActivationFunction(ActivationFunction activation)Not used, will throw an exception.voidsetAnnealCycles(int annealCycles)Set the number of annealing cycles per run.voidsetInputNeurons(int count)Set the number of input neurons.voidsetOutputNeurons(int count)Set the number of output neurons.voidsetRunCycles(int runCycles)Set the number of cycles per run.voidsetTemperature(double temperature)Set the temperature.
-
-
-
Method Detail
-
addHiddenLayer
public void addHiddenLayer(int count)
Not supported, will throw an exception, Boltzmann networks have no hidden layers.- Specified by:
addHiddenLayerin interfaceNeuralNetworkPattern- Parameters:
count- Not used.
-
clear
public void clear()
Clear any properties set on this network.- Specified by:
clearin interfaceNeuralNetworkPattern
-
generate
public MLMethod generate()
Generate the network.- Specified by:
generatein interfaceNeuralNetworkPattern- Returns:
- The generated network.
-
getAnnealCycles
public int getAnnealCycles()
- Returns:
- The number of annealing cycles per run.
-
getRunCycles
public int getRunCycles()
- Returns:
- The number of cycles per run.
-
getTemperature
public double getTemperature()
- Returns:
- The temperature.
-
setActivationFunction
public void setActivationFunction(ActivationFunction activation)
Not used, will throw an exception.- Specified by:
setActivationFunctionin interfaceNeuralNetworkPattern- Parameters:
activation- Not used.
-
setAnnealCycles
public void setAnnealCycles(int annealCycles)
Set the number of annealing cycles per run.- Parameters:
annealCycles- The new value.
-
setInputNeurons
public void setInputNeurons(int count)
Set the number of input neurons. This is the same as the number of output neurons.- Specified by:
setInputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- The number of input neurons.
-
setOutputNeurons
public void setOutputNeurons(int count)
Set the number of output neurons. This is the same as the number of input neurons.- Specified by:
setOutputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- The number of output neurons.
-
setRunCycles
public void setRunCycles(int runCycles)
Set the number of cycles per run.- Parameters:
runCycles- The new value.
-
setTemperature
public void setTemperature(double temperature)
Set the temperature.- Parameters:
temperature- The new value.
-
-
DMelt 3.0 © DataMelt by jWork.ORG