class chainer.optimizer.WeightDecay(rate)[source]

荷重減衰正則化(=L2正則化?)のOptimizer/UpdateRule フック関数。

 

このフック関数は対応する勾配に、スケールされたパラメータを加えます。正則化に用いることも可能です。

 

Parameters: rate (float) – 荷重減衰の係数
Variables: rate (float) – 荷重減衰の係数

 

Methods

__call__(rule, param)[source]

 

Attributes

call_for_each_param = True
name = 'WeightDecay'