public abstract class GradientExtender extends LearnerExtender
Constructor and Description |
---|
GradientExtender()
Creates a new instance of DeltaExtender
|
Modifier and Type | Method and Description |
---|---|
abstract double |
getGradientBias(double[] currentGradientOuts,
int j,
double aPreviousGradient)
Computes the gradient value for a bias.
|
abstract double |
getGradientWeight(double[] currentInps,
int j,
double[] currentPattern,
int k,
double aPreviousGradient)
Computes the gradient value for a weight.
|
getLearner, isEnabled, postBiasUpdate, postWeightUpdate, preBiasUpdate, preWeightUpdate, setEnabled, setLearner
public GradientExtender()
public abstract double getGradientBias(double[] currentGradientOuts, int j, double aPreviousGradient)
currentGradientOuts
- the back propagated gradients.j
- the index of the bias.aPreviousGradient
- a gradient value calculated by a previous
gradient extender.public abstract double getGradientWeight(double[] currentInps, int j, double[] currentPattern, int k, double aPreviousGradient)
currentInps
- the forwarded input.j
- the input index of the weight.currentPattern
- the back propagated gradients.k
- the output index of the weight.aPreviousGradient
- a gradients value calculated by a previous gradients extender.Submit Feedback to pmarrone@users.sourceforge.net