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