chainer.optimizer_hooks.WeightDecay¶
-
class
chainer.optimizer_hooks.
WeightDecay
(rate)[source]¶ Optimizer/UpdateRule hook function for weight decay regularization.
This hook function adds a scaled parameter to the corresponding gradient. It can be used as a regularization.
Parameters: rate (float) – Coefficient for the weight decay.
Variables: New in version 4.0.0: The timing parameter.
Methods
Attributes
-
call_for_each_param
= True¶
-
name
= 'WeightDecay'¶
-
timing
= 'pre'¶
-