5 references to Count
Microsoft.ML.Predictor.Tests (2)
TestPredictors.cs (2)
958
Assert.Equal(probs.
Count
(p => p >= prob), probs.
Count
(p => p <= prob));
Microsoft.ML.StandardTrainers (2)
Standard\SdcaBinary.cs (1)
1007
metrics[(int)MetricKind.L1Sparsity] = SdcaTrainerOptions.L1Regularization == 0 ? 1 : (Double)firstWeights.GetValues().
Count
(w => w != 0) / weights.Length;
Standard\SdcaMulticlass.cs (1)
439
weight => weight.GetValues().
Count
(w => w != 0)) / (numClasses * numFeatures);
Microsoft.ML.Sweeper (1)
Parameters.cs (1)
598
if (options.Length != optionsSpecified.
Count
(b => b))