public final class AdaGradOptimizer extends Object implements Optimizer, Serializable
Optimizer
, which uses sum of squared previous gradients
to adjust a global learning rate for each weight.Constructor and Description |
---|
AdaGradOptimizer(AbstractLayer layer) |
Modifier and Type | Method and Description |
---|---|
float |
calculateDeltaBias(float grad,
int idx) |
float |
calculateDeltaWeight(float grad,
int... idxs) |
void |
setLearningRate(float learningRate) |
public AdaGradOptimizer(AbstractLayer layer)
public float calculateDeltaWeight(float grad, int... idxs)
calculateDeltaWeight
in interface Optimizer
public float calculateDeltaBias(float grad, int idx)
calculateDeltaBias
in interface Optimizer
public void setLearningRate(float learningRate)
setLearningRate
in interface Optimizer
Copyright © 2022. All rights reserved.