public class RPropUpdateCalculator extends Object implements ParameterUpdateCalculator<SmoothParametrized,RPropParameterUpdate>
See RProp.
Modifier and Type | Field and Description |
---|---|
protected IgniteFunction<Vector,IgniteDifferentiableVectorToDoubleFunction> |
loss
Loss function.
|
Constructor and Description |
---|
RPropUpdateCalculator()
Construct RPropUpdateCalculator with default parameters.
|
RPropUpdateCalculator(double initUpdate,
double accelerationRate,
double deaccelerationRate)
Construct RPropUpdateCalculator.
|
Modifier and Type | Method and Description |
---|---|
RPropParameterUpdate |
calculateNewUpdate(SmoothParametrized mdl,
RPropParameterUpdate updaterParams,
int iteration,
Matrix inputs,
Matrix groundTruth)
Calculate new update.
|
RPropParameterUpdate |
init(SmoothParametrized mdl,
IgniteFunction<Vector,IgniteDifferentiableVectorToDoubleFunction> loss)
Initializes the update calculator.
|
<M1 extends SmoothParametrized> |
update(M1 obj,
RPropParameterUpdate update)
Update given obj with this parameters.
|
protected IgniteFunction<Vector,IgniteDifferentiableVectorToDoubleFunction> loss
public RPropUpdateCalculator(double initUpdate, double accelerationRate, double deaccelerationRate)
initUpdate
- Initial update.accelerationRate
- Acceleration rate.deaccelerationRate
- Deacceleration rate.public RPropUpdateCalculator()
public RPropParameterUpdate calculateNewUpdate(SmoothParametrized mdl, RPropParameterUpdate updaterParams, int iteration, Matrix inputs, Matrix groundTruth)
calculateNewUpdate
in interface ParameterUpdateCalculator<SmoothParametrized,RPropParameterUpdate>
mdl
- Model to be updated.updaterParams
- Updater parameters to updateCache.iteration
- Current trainer iteration.inputs
- Inputs.groundTruth
- True values.public RPropParameterUpdate init(SmoothParametrized mdl, IgniteFunction<Vector,IgniteDifferentiableVectorToDoubleFunction> loss)
init
in interface ParameterUpdateCalculator<SmoothParametrized,RPropParameterUpdate>
mdl
- Model to be trained.loss
- Loss function.public <M1 extends SmoothParametrized> M1 update(M1 obj, RPropParameterUpdate update)
update
in interface ParameterUpdateCalculator<SmoothParametrized,RPropParameterUpdate>
obj
- Object to be updated.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024