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