public final class AdaDeltaOptimizer extends Object implements Optimizer, TrainingListener
Optimizer
which is a modification od AdaGrad
that uses only a limited window or previous gradients.Constructor and Description |
---|
AdaDeltaOptimizer(AbstractLayer layer) |
Modifier and Type | Method and Description |
---|---|
float |
calculateDeltaBias(float grad,
int idx) |
float |
calculateDeltaWeight(float grad,
int... idxs) |
void |
handleEvent(TrainingEvent event)
Invoked when a training event occurs.
|
void |
setLearningRate(float learningRate) |
public AdaDeltaOptimizer(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 handleEvent(TrainingEvent event)
TrainingListener
handleEvent
in interface TrainingListener
event
- the training eventpublic void setLearningRate(float learningRate)
setLearningRate
in interface Optimizer
Copyright © 2022. All rights reserved.