7 writes to L1Regularization
Microsoft.ML.AutoML (4)
SweepableEstimator\Estimators\Sdca.cs (4)
18
L1Regularization
= param.L1Regularization,
36
L1Regularization
= param.L1Regularization,
54
L1Regularization
= param.L1Regularization,
72
L1Regularization
= param.L1Regularization,
Microsoft.ML.Samples (1)
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
39
L1Regularization
= 0.1f,
Microsoft.ML.StandardTrainers (2)
Standard\SdcaBinary.cs (2)
312
SdcaTrainerOptions.
L1Regularization
= l1Threshold ?? options.L1Regularization;
462
SdcaTrainerOptions.
L1Regularization
= TuneDefaultL1(ch, numFeatures);
18 references to L1Regularization
Microsoft.ML.StandardTrainers (18)
Standard\SdcaBinary.cs (12)
244
env.CheckUserArg(
L1Regularization
== null ||
L1Regularization
>= 0, nameof(
L1Regularization
), "L1 threshold must be non-negative.");
312
SdcaTrainerOptions.L1Regularization = l1Threshold ?? options.
L1Regularization
;
461
if (SdcaTrainerOptions.
L1Regularization
== null)
464
ch.Assert(SdcaTrainerOptions.
L1Regularization
.HasValue);
465
var l1Threshold = SdcaTrainerOptions.
L1Regularization
.Value;
795
Contracts.Assert(SdcaTrainerOptions.
L1Regularization
.HasValue);
800
var l1Threshold = SdcaTrainerOptions.
L1Regularization
.Value;
993
Contracts.Assert(SdcaTrainerOptions.
L1Regularization
.HasValue);
995
Double l1Threshold = SdcaTrainerOptions.
L1Regularization
.Value;
1007
metrics[(int)MetricKind.L1Sparsity] = SdcaTrainerOptions.
L1Regularization
== 0 ? 1 : (Double)firstWeights.GetValues().Count(w => w != 0) / weights.Length;
Standard\SdcaMulticlass.cs (6)
179
Contracts.Assert(SdcaTrainerOptions.
L1Regularization
.HasValue);
188
var l1Threshold = SdcaTrainerOptions.
L1Regularization
.Value;
412
Contracts.Assert(SdcaTrainerOptions.
L1Regularization
.HasValue);
414
Double l1Threshold = SdcaTrainerOptions.
L1Regularization
.Value;
426
Double l1Regularizer = SdcaTrainerOptions.
L1Regularization
.Value * l2Const * weightsL1Norm;
438
metrics[(int)MetricKind.L1Sparsity] = SdcaTrainerOptions.
L1Regularization
== 0 ? 1 : weights.Sum(