public class SimulatedAnnealingExtender extends DeltaRuleExtender
| Constructor and Description |
|---|
SimulatedAnnealingExtender()
Creates a new instance of SimulatedAnnealingExtender
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDelta(double[] currentGradientOuts,
int j,
double aPreviousDelta)
Computes the delta value for a bias.
|
double |
getDelta(double[] currentInps,
int j,
double[] currentPattern,
int k,
double aPreviousDelta)
Computes the delta value for a weight.
|
double |
getK()
Gets the noise decay constant.
|
double |
getN()
Gets the constant controlling the initial noise.
|
protected double |
getRandom()
Gets a random value between the random boundary.
|
double |
getRandomBoundary()
Gets the random number boundary.
|
void |
postBiasUpdate(double[] currentGradientOuts)
Gives extenders a change to do some post-computing after the
biases are updated.
|
void |
postWeightUpdate(double[] currentPattern,
double[] currentInps)
Gives extenders a change to do some post-computing after the
weights are updated.
|
void |
preBiasUpdate(double[] currentGradientOuts)
Gives extenders a change to do some pre-computing before the
biases are updated.
|
void |
preWeightUpdate(double[] currentPattern,
double[] currentInps)
Gives extenders a change to do some pre-computing before the
weights are updated.
|
void |
setK(double aK)
Sets the noise decay constant.
|
void |
setN(double aN)
Sets the constant controlling the initial noise.
|
void |
setRandomBoundary(double aBoundary)
Sets the noise decay constant.
|
getLearner, isEnabled, setEnabled, setLearnerpublic SimulatedAnnealingExtender()
public double getDelta(double[] currentGradientOuts,
int j,
double aPreviousDelta)
DeltaRuleExtendergetDelta in class DeltaRuleExtendercurrentGradientOuts - the back propagated gradients.j - the index of the bias.aPreviousDelta - a delta value calculated by a previous delta extender.public double getDelta(double[] currentInps,
int j,
double[] currentPattern,
int k,
double aPreviousDelta)
DeltaRuleExtendergetDelta in class DeltaRuleExtendercurrentInps - the forwarded input.j - the input index of the weight.currentPattern - the back propagated gradients.k - the output index of the weight.aPreviousDelta - a delta value calculated by a previous delta extender.public void postBiasUpdate(double[] currentGradientOuts)
LearnerExtenderpostBiasUpdate in class LearnerExtendercurrentGradientOuts - the back propagated gradients.public void postWeightUpdate(double[] currentPattern,
double[] currentInps)
LearnerExtenderpostWeightUpdate in class LearnerExtendercurrentPattern - the back propagated gradients.currentInps - the forwarded input.public void preBiasUpdate(double[] currentGradientOuts)
LearnerExtenderpreBiasUpdate in class LearnerExtendercurrentGradientOuts - the back propagated gradients.public void preWeightUpdate(double[] currentPattern,
double[] currentInps)
LearnerExtenderpreWeightUpdate in class LearnerExtendercurrentPattern - the back propagated gradients.currentInps - the forwarded input.public double getN()
public void setN(double aN)
aN - the constant controlling the initial noise.public double getK()
public void setK(double aK)
aK - the noise decay constant.public double getRandomBoundary()
public void setRandomBoundary(double aBoundary)
aK - the noise decay constant.protected double getRandom()
Submit Feedback to pmarrone@users.sourceforge.net