10 references to ForEachDefined
Microsoft.ML.PCA (1)
PcaTrainer.cs (1)
581VBufferUtils.ForEachDefined(in _eigenVectors[i],
Microsoft.ML.StandardTrainers (9)
Optimizer\L1Optimizer.cs (4)
106VBufferUtils.ForEachDefined(in input, 109VBufferUtils.ForEachDefined(in input, (ind, value) => res += Math.Abs(value)); 114VBufferUtils.ForEachDefined(in input, 117VBufferUtils.ForEachDefined(in input, (ind, value) => res += value);
Standard\LinearPredictorUtils.cs (2)
43VBufferUtils.ForEachDefined(in weights, 110VBufferUtils.ForEachDefined(in weights,
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
714VBufferUtils.ForEachDefined(in CurrentWeights, (index, value) => { if (index >= BiasCount && value != 0) numParams++; });
Standard\LogisticRegression\LogisticRegression.cs (1)
250VBufferUtils.ForEachDefined(in CurrentWeights, (ind, value) => { if (ind >= BiasCount) regLoss += Math.Abs(value); });
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
336VBufferUtils.ForEachDefined(in CurrentWeights, (ind, value) => { if (ind >= BiasCount) regLoss += Math.Abs(value); });