org.encog.neural.thermal
public class BoltzmannMachine extends ThermalNetwork
Modifier and Type | Field and Description |
---|---|
static String |
ANNEAL_CYCLES
The property for anneal cycles.
|
static String |
RUN_CYCLES
The property for run cycles.
|
Constructor and Description |
---|
BoltzmannMachine()
Default constructors.
|
BoltzmannMachine(int neuronCount)
Construct a Boltzmann machine with the specified number of neurons.
|
Modifier and Type | Method and Description |
---|---|
MLData |
compute(MLData input)
Note: for Boltzmann networks, you will usually want to call the "run"
method to compute the output.
|
void |
decreaseTemperature(double d)
Decrease the temperature by the specified amount.
|
void |
establishEquilibrium()
Run the network until thermal equilibrium is established.
|
int |
getAnnealCycles() |
int |
getInputCount() |
int |
getOutputCount() |
int |
getRunCycles() |
double |
getTemperature() |
double[] |
getThreshold() |
void |
run()
Run the network for all neurons present.
|
void |
run(int i)
Run the network for the specified neuron.
|
void |
setAnnealCycles(int annealCycles) |
void |
setRunCycles(int runCycles) |
void |
setTemperature(double temperature)
Set the network temperature.
|
void |
setThreshold(double[] t)
Set the thresholds.
|
void |
updateProperties()
Update any objeccts when a property changes.
|
addWeight, calculateEnergy, clear, getCurrentState, getNeuronCount, getWeight, getWeights, init, reset, reset, setCurrentState, setCurrentState, setNeuronCount, setWeight, setWeights
getProperties, getPropertyDouble, getPropertyLong, getPropertyString, setProperty, setProperty, setProperty
public static final String RUN_CYCLES
public static final String ANNEAL_CYCLES
public BoltzmannMachine()
public BoltzmannMachine(int neuronCount)
neuronCount
- The number of neurons.public MLData compute(MLData input)
input
- The input pattern.public void decreaseTemperature(double d)
d
- The amount to decrease by.public void establishEquilibrium()
public int getAnnealCycles()
public int getInputCount()
public int getOutputCount()
public int getRunCycles()
public double getTemperature()
public double[] getThreshold()
public void run()
public void run(int i)
i
- The neuron to run for.public void setAnnealCycles(int annealCycles)
annealCycles
- the annealCycles to setpublic void setRunCycles(int runCycles)
runCycles
- the runCycles to setpublic void setTemperature(double temperature)
temperature
- The temperature to operate the network at.public void setThreshold(double[] t)
t
- The thresholds.public void updateProperties()
updateProperties
in interface MLProperties
updateProperties
in class BasicML
Copyright © 2014. All Rights Reserved.