public final class MomentumOptimizer extends Object implements Optimizer, Serializable
Constructor and Description |
---|
MomentumOptimizer(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 MomentumOptimizer(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.