|
||||||||||
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 void addWeight(int fromNeuron, int toNeuron, double value)
fromNeuron
- The from neuron.toNeuron
- The to neuron.value
- The value to add.public double calculateEnergy()
public void clear()
public BiPolarNeuralData getCurrentState()
public int getNeuronCount()
public double getWeight(int fromNeuron, int toNeuron)
fromNeuron
- The from neuron.toNeuron
- The to neuron.
public double[] getWeights()
public void init(int neuronCount, double[] weights, double[] output)
neuronCount
- The neuron count.weights
- The weights.output
- The toutpupublic void reset()
reset
in interface MLResettable
public void reset(int seed)
reset
in interface MLResettable
seed
- The seed value.public void setCurrentState(BiPolarNeuralData state)
state
- The current state for the network.public void setCurrentState(double[] s)
s
- The current state array.public void setNeuronCount(int c)
c
- The neuron count.public void setWeight(int fromNeuron, int toNeuron, double value)
fromNeuron
- The from neuron.toNeuron
- The to neuron.value
- The value.public void setWeights(double[] w)
w
- The weight array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |