M
- Type of model to be updated.P
- Type of parameters needed for this update calculator.public interface ParameterUpdateCalculator<M,P extends Serializable> extends Serializable
Modifier and Type | Method and Description |
---|---|
P |
calculateNewUpdate(M mdl,
P updaterParameters,
int iteration,
Matrix inputs,
Matrix groundTruth)
Calculate new update.
|
P |
init(M mdl,
IgniteFunction<Vector,IgniteDifferentiableVectorToDoubleFunction> loss)
Initializes the update calculator.
|
<M1 extends M> |
update(M1 obj,
P update)
Update given obj with this parameters.
|
P init(M mdl, IgniteFunction<Vector,IgniteDifferentiableVectorToDoubleFunction> loss)
mdl
- Model to be trained.loss
- Loss function.P calculateNewUpdate(M mdl, P updaterParameters, int iteration, Matrix inputs, Matrix groundTruth)
mdl
- Model to be updated.updaterParameters
- Updater parameters to updateCache.iteration
- Current trainer iteration.inputs
- Inputs.groundTruth
- True values.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024