org.joone.engine.extenders
Class RpropExtender
- java.lang.Object
-
- org.joone.engine.extenders.LearnerExtender
-
- org.joone.engine.extenders.DeltaRuleExtender
-
- org.joone.engine.extenders.RpropExtender
-
public class RpropExtender extends DeltaRuleExtender
This class changes the delta value in such a way that it implements the RPROP algorithm.
-
-
Constructor Summary
Constructors Constructor and Description RpropExtender()Creates a new instance of RpropExtender
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetDelta(double[] currentGradientOuts, int j, double aPreviousDelta)Computes the delta value for a bias.doublegetDelta(double[] currentInps, int j, double[] currentPattern, int k, double aPreviousDelta)Computes the delta value for a weight.RpropParametersgetParameters()Gets the parameters of this learning algorithm.voidpostBiasUpdate(double[] currentGradientOuts)Gives extenders a change to do some post-computing after the biases are updated.voidpostWeightUpdate(double[] currentPattern, double[] currentInps)Gives extenders a change to do some post-computing after the weights are updated.voidpreBiasUpdate(double[] currentGradientOuts)Gives extenders a change to do some pre-computing before the biases are updated.voidpreWeightUpdate(double[] currentPattern, double[] currentInps)Gives extenders a change to do some pre-computing before the weights are updated.voidreinit()(Re)Initializes this RPROP learner.voidsetParameters(RpropParameters aParameters)Sets the parameters for this learning algorithm.-
Methods inherited from class org.joone.engine.extenders.LearnerExtender
isEnabled, setEnabled, setLearner
-
-
-
-
Method Detail
-
reinit
public void reinit()
(Re)Initializes this RPROP learner.
-
getDelta
public double getDelta(double[] currentGradientOuts, int j, double aPreviousDelta)Description copied from class:DeltaRuleExtenderComputes the delta value for a bias.- Specified by:
getDeltain classDeltaRuleExtender- Parameters:
currentGradientOuts- the back propagated gradients.j- the index of the bias.aPreviousDelta- a delta value calculated by a previous delta extender.
-
getDelta
public double getDelta(double[] currentInps, int j, double[] currentPattern, int k, double aPreviousDelta)Description copied from class:DeltaRuleExtenderComputes the delta value for a weight.- Specified by:
getDeltain classDeltaRuleExtender- Parameters:
currentInps- 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.
-
postBiasUpdate
public void postBiasUpdate(double[] currentGradientOuts)
Description copied from class:LearnerExtenderGives extenders a change to do some post-computing after the biases are updated.- Specified by:
postBiasUpdatein classLearnerExtender- Parameters:
currentGradientOuts- the back propagated gradients.
-
postWeightUpdate
public void postWeightUpdate(double[] currentPattern, double[] currentInps)Description copied from class:LearnerExtenderGives extenders a change to do some post-computing after the weights are updated.- Specified by:
postWeightUpdatein classLearnerExtender- Parameters:
currentPattern- the back propagated gradients.currentInps- the forwarded input.
-
preBiasUpdate
public void preBiasUpdate(double[] currentGradientOuts)
Description copied from class:LearnerExtenderGives extenders a change to do some pre-computing before the biases are updated.- Specified by:
preBiasUpdatein classLearnerExtender- Parameters:
currentGradientOuts- the back propagated gradients.
-
preWeightUpdate
public void preWeightUpdate(double[] currentPattern, double[] currentInps)Description copied from class:LearnerExtenderGives extenders a change to do some pre-computing before the weights are updated.- Specified by:
preWeightUpdatein classLearnerExtender- Parameters:
currentPattern- the back propagated gradients.currentInps- the forwarded input.
-
getParameters
public RpropParameters getParameters()
Gets the parameters of this learning algorithm.- Returns:
- the parameters of this learning algorithm.
-
setParameters
public void setParameters(RpropParameters aParameters)
Sets the parameters for this learning algorithm.- Parameters:
aParameters- the parameters for this learning algorithm.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG