chainer.optimizer.Lasso

class chainer.optimizer.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:rate (float) – Coefficient for the weight decay.

Methods

__call__(rule, param)[source]

Attributes

call_for_each_param = True
name = 'Lasso'