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.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019