M
- Type of model to be optimized.U
- Type of update.public class UpdatesStrategy<M,U extends Serializable> extends Object
Constructor and Description |
---|
UpdatesStrategy(ParameterUpdateCalculator<M,U> updatesCalculator,
IgniteFunction<List<U>,U> locStepUpdatesReducer,
IgniteFunction<List<U>,U> allUpdatesReducer)
Construct instance of this class with given parameters.
|
Modifier and Type | Method and Description |
---|---|
IgniteFunction<List<U>,U> |
allUpdatesReducer()
Get function used to reduce updates from different trainings
(for example, averaging of gradients of all parallel trainings).
|
ParameterUpdateCalculator<M,U> |
getUpdatesCalculator()
Get parameter update calculator (see
ParameterUpdateCalculator ). |
IgniteFunction<List<U>,U> |
locStepUpdatesReducer()
Get function used to reduce updates in one training
(for example, sum all sequential gradient updates to get one gradient update).
|
public UpdatesStrategy(ParameterUpdateCalculator<M,U> updatesCalculator, IgniteFunction<List<U>,U> locStepUpdatesReducer, IgniteFunction<List<U>,U> allUpdatesReducer)
updatesCalculator
- Parameter update calculator.locStepUpdatesReducer
- Function used to reduce updates in one training
(for example, sum all sequential gradient updates to get one gradient update).allUpdatesReducer
- Function used to reduce updates from different trainings
(for example, averaging of gradients of all parallel trainings).public ParameterUpdateCalculator<M,U> getUpdatesCalculator()
ParameterUpdateCalculator
).public IgniteFunction<List<U>,U> locStepUpdatesReducer()
public IgniteFunction<List<U>,U> allUpdatesReducer()
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024