chainer.optimizer_hooks.Lasso¶
-
class
chainer.optimizer_hooks.
Lasso
(rate)[source]¶ Optimizer/UpdateRule hook function for Lasso regularization.
This hook function adds a scaled parameter to the sign of each weight. 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
= 'Lasso'¶
-
timing
= 'pre'¶
-