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