|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.BasicML
org.encog.neural.thermal.ThermalNetwork
org.encog.neural.thermal.BoltzmannMachine
public class BoltzmannMachine
Implements a Boltzmann machine.
| Field Summary | |
|---|---|
static String |
ANNEAL_CYCLES
The property for anneal cycles. |
static String |
RUN_CYCLES
The property for run cycles. |
| Constructor Summary | |
|---|---|
BoltzmannMachine()
Default constructors. |
|
BoltzmannMachine(int neuronCount)
Construct a Boltzmann machine with the specified number of neurons. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.encog.neural.thermal.ThermalNetwork |
|---|
addWeight, calculateEnergy, clear, getCurrentState, getNeuronCount, getWeight, getWeights, init, reset, reset, setCurrentState, setCurrentState, setNeuronCount, setWeight, setWeights |
| Methods inherited from class org.encog.ml.BasicML |
|---|
getProperties, getPropertyDouble, getPropertyLong, getPropertyString, setProperty, setProperty, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RUN_CYCLES
public static final String ANNEAL_CYCLES
| Constructor Detail |
|---|
public BoltzmannMachine()
public BoltzmannMachine(int neuronCount)
neuronCount - The number of neurons.| Method Detail |
|---|
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 MLPropertiesupdateProperties in class BasicML
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||