org.joone.engine.extenders
Class GradientExtender
- java.lang.Object
-
- org.joone.engine.extenders.LearnerExtender
-
- org.joone.engine.extenders.GradientExtender
-
public abstract class GradientExtender extends LearnerExtender
This abstract class describes the methods needed for a gradient extender, that is, a class that computes / changes the gradient value according to some algorithm.
-
-
Constructor Summary
Constructors Constructor and Description GradientExtender()Creates a new instance of DeltaExtender
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description abstract doublegetGradientBias(double[] currentGradientOuts, int j, double aPreviousGradient)Computes the gradient value for a bias.abstract doublegetGradientWeight(double[] currentInps, int j, double[] currentPattern, int k, double aPreviousGradient)Computes the gradient value for a weight.-
Methods inherited from class org.joone.engine.extenders.LearnerExtender
isEnabled, postBiasUpdate, postWeightUpdate, preBiasUpdate, preWeightUpdate, setEnabled, setLearner
-
-
-
-
Constructor Detail
-
GradientExtender
public GradientExtender()
Creates a new instance of DeltaExtender
-
-
Method Detail
-
getGradientBias
public abstract double getGradientBias(double[] currentGradientOuts, int j, double aPreviousGradient)Computes the gradient value for a bias.- Parameters:
currentGradientOuts- the back propagated gradients.j- the index of the bias.aPreviousGradient- a gradient value calculated by a previous gradient extender.
-
getGradientWeight
public abstract double getGradientWeight(double[] currentInps, int j, double[] currentPattern, int k, double aPreviousGradient)Computes the gradient value for a weight.- Parameters:
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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG