|
||||||||||
| 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
public abstract class ThermalNetwork
The thermal network forms the base class for Hopfield and Boltzmann machines.
| Constructor Summary | |
|---|---|
ThermalNetwork()
Default constructor. |
|
ThermalNetwork(int neuronCount)
Construct the network with the specicified neuron count. |
|
| Method Summary | |
|---|---|
void |
addWeight(int fromNeuron,
int toNeuron,
double value)
Add to the specified weight. |
double |
calculateEnergy()
|
void |
clear()
Clear any connection weights. |
BiPolarNeuralData |
getCurrentState()
|
int |
getNeuronCount()
|
double |
getWeight(int fromNeuron,
int toNeuron)
Get a weight. |
double[] |
getWeights()
|
void |
init(int neuronCount,
double[] weights,
double[] output)
Init the network. |
void |
reset()
Reset the weights. |
void |
reset(int seed)
Reset the weights with a seed. |
void |
setCurrentState(BiPolarNeuralData state)
|
void |
setCurrentState(double[] s)
Set the current state. |
void |
setNeuronCount(int c)
Set the neuron count. |
void |
setWeight(int fromNeuron,
int toNeuron,
double value)
Set the weight. |
void |
setWeights(double[] w)
Set the weight array. |
| Methods inherited from class org.encog.ml.BasicML |
|---|
getProperties, getPropertyDouble, getPropertyLong, getPropertyString, setProperty, setProperty, setProperty, updateProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.encog.ml.MLRegression |
|---|
compute |
| Methods inherited from interface org.encog.ml.MLInput |
|---|
getInputCount |
| Methods inherited from interface org.encog.ml.MLOutput |
|---|
getOutputCount |
| Constructor Detail |
|---|
public ThermalNetwork()
public ThermalNetwork(int neuronCount)
neuronCount - The number of neurons.| Method Detail |
|---|
public final void addWeight(int fromNeuron,
int toNeuron,
double value)
fromNeuron - The from neuron.toNeuron - The to neuron.value - The value to add.public final double calculateEnergy()
public final void clear()
public final BiPolarNeuralData getCurrentState()
public final int getNeuronCount()
public final double getWeight(int fromNeuron,
int toNeuron)
fromNeuron - The from neuron.toNeuron - The to neuron.
public final double[] getWeights()
public final void init(int neuronCount,
double[] weights,
double[] output)
neuronCount - The neuron count.weights - The weights.output - The toutpupublic final void reset()
reset in interface MLResettablepublic final void reset(int seed)
reset in interface MLResettableseed - The seed value.public final void setCurrentState(BiPolarNeuralData state)
state - The current state for the network.public final void setCurrentState(double[] s)
s - The current state array.public final void setNeuronCount(int c)
c - The neuron count.
public final void setWeight(int fromNeuron,
int toNeuron,
double value)
fromNeuron - The from neuron.toNeuron - The to neuron.value - The value.public final void setWeights(double[] w)
w - The weight array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||