public class TestDecayPolicies
extends java.lang.Object
Constructor and Description |
---|
TestDecayPolicies() |
Modifier and Type | Method and Description |
---|---|
void |
beforeDo() |
double |
calcExponentialDecay(double lr,
double decayRate,
double iteration) |
double |
calcInverseDecay(double lr,
double decayRate,
double iteration,
double power) |
double |
calcPolyDecay(double lr,
double iteration,
double power,
double maxIterations) |
double |
calcSigmoidDecay(double lr,
double decayRate,
double iteration,
double steps) |
double |
calcStepDecay(double lr,
double decayRate,
double iteration,
double steps) |
double |
calcTorchStepDecay(double lr,
double decayRate) |
double |
testAdaGradComputation(Gradient gradientActual,
Gradient gradientExpected,
double lr,
java.util.Map<java.lang.Integer,java.lang.Double> learningRateAfter,
int i) |
double |
testAdamComputation(Gradient gradientActual,
Gradient gradientExpected,
double lr,
java.util.Map<java.lang.Integer,java.lang.Double> learningRateAfter,
int i) |
void |
testLearningRateExponentialDecaySingleLayer() |
void |
testLearningRateInverseDecaySingleLayer() |
void |
testLearningRatePolyDecaySingleLayer() |
void |
testLearningRateScheduleMLN() |
void |
testLearningRateScheduleSingleLayer() |
void |
testLearningRateScoreDecay() |
void |
testLearningRateSigmoidDecaySingleLayer() |
void |
testLearningRateStepDecaySingleLayer() |
void |
testLearningRateTorchStepDecaySingleLayer() |
void |
testMomentumScheduleMLN() |
void |
testMomentumScheduleSingleLayer() |
double |
testNesterovsComputation(Gradient gradientActual,
Gradient gradientExpected,
double lr,
double mu,
java.util.Map<java.lang.Integer,java.lang.Double> momentumAfter,
int i) |
void |
testOriginalLearningRateUnchanged() |
double |
testRMSPropComputation(Gradient gradientActual,
Gradient gradientExpected,
double lr,
java.util.Map<java.lang.Integer,java.lang.Double> learningRateAfter,
int i) |
double |
testSGDComputation(Gradient gradientActual,
Gradient gradientExpected,
double lr,
java.util.Map<java.lang.Integer,java.lang.Double> learningRateAfter,
int i) |
void |
testUpdatingInConf() |
public void beforeDo()
public void testLearningRateExponentialDecaySingleLayer()
public void testLearningRateInverseDecaySingleLayer()
public void testLearningRateStepDecaySingleLayer()
public void testLearningRateTorchStepDecaySingleLayer()
public void testLearningRatePolyDecaySingleLayer()
public void testLearningRateSigmoidDecaySingleLayer()
public void testLearningRateScheduleSingleLayer()
public void testLearningRateScheduleMLN()
public void testLearningRateScoreDecay()
public void testOriginalLearningRateUnchanged()
public void testMomentumScheduleSingleLayer()
public void testMomentumScheduleMLN()
public void testUpdatingInConf() throws java.lang.Exception
java.lang.Exception
public double testSGDComputation(Gradient gradientActual, Gradient gradientExpected, double lr, java.util.Map<java.lang.Integer,java.lang.Double> learningRateAfter, int i)
public double testNesterovsComputation(Gradient gradientActual, Gradient gradientExpected, double lr, double mu, java.util.Map<java.lang.Integer,java.lang.Double> momentumAfter, int i)
public double testAdaGradComputation(Gradient gradientActual, Gradient gradientExpected, double lr, java.util.Map<java.lang.Integer,java.lang.Double> learningRateAfter, int i)
public double testAdamComputation(Gradient gradientActual, Gradient gradientExpected, double lr, java.util.Map<java.lang.Integer,java.lang.Double> learningRateAfter, int i)
public double testRMSPropComputation(Gradient gradientActual, Gradient gradientExpected, double lr, java.util.Map<java.lang.Integer,java.lang.Double> learningRateAfter, int i)
public double calcExponentialDecay(double lr, double decayRate, double iteration)
public double calcInverseDecay(double lr, double decayRate, double iteration, double power)
public double calcStepDecay(double lr, double decayRate, double iteration, double steps)
public double calcTorchStepDecay(double lr, double decayRate)
public double calcPolyDecay(double lr, double iteration, double power, double maxIterations)
public double calcSigmoidDecay(double lr, double decayRate, double iteration, double steps)