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)
119res = _l1weight * res + _function(in input, ref gradient, progress); 138return -gradVal + _l1weight; 140return -gradVal - _l1weight; 141if (gradVal < -_l1weight) 142return -gradVal - _l1weight; 143if (gradVal > _l1weight) 144return -gradVal + _l1weight; 156return -gradVal - _l1weight; 157return -Math.Min(gradVal + _l1weight, 0);