org.encog.neural.thermal
public abstract class ThermalNetwork extends BasicML implements MLMethod, MLAutoAssocation, MLResettable
Constructor and Description |
---|
ThermalNetwork()
Default constructor.
|
ThermalNetwork(int neuronCount)
Construct the network with the specicified neuron count.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getProperties, getPropertyDouble, getPropertyLong, getPropertyString, setProperty, setProperty, setProperty, updateProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute
getInputCount
getOutputCount
public ThermalNetwork()
public ThermalNetwork(int neuronCount)
neuronCount
- The number of neurons.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.Copyright © 2014. All Rights Reserved.