1 write to _l1weight
Microsoft.ML.StandardTrainers (1)
Optimizer\L1Optimizer.cs (1)
84
_l1weight
= l1Weight;
9 references to _l1weight
Microsoft.ML.StandardTrainers (9)
Optimizer\L1Optimizer.cs (9)
119
res =
_l1weight
* res + _function(in input, ref gradient, progress);
138
return -gradVal +
_l1weight
;
140
return -gradVal -
_l1weight
;
141
if (gradVal < -
_l1weight
)
142
return -gradVal -
_l1weight
;
143
if (gradVal >
_l1weight
)
144
return -gradVal +
_l1weight
;
156
return -gradVal -
_l1weight
;
157
return -Math.Min(gradVal +
_l1weight
, 0);