12 references to Size
Microsoft.ML.Core (3)
Data\RoleMappedSchema.cs (3)
166Contracts.Assert(Utils.Size(kvp.Value) > 0); 306if (Utils.Size(infos) != 1) 307throw Contracts.Except("Expected exactly one column with role '{0}', but found {1}.", role.Value, Utils.Size(infos));
Microsoft.ML.Data (5)
Evaluators\BinaryClassifierEvaluator.cs (2)
163return i => Utils.Size(prob) > 0 && i == prob[0].Index || pred(i); 198var probCol = Utils.Size(probInfos) > 0 ? probInfos[0].Name : null;
Evaluators\EvaluatorBase.cs (2)
80var stratIndices = Utils.Size(stratCols) > 0 ? new HashSet<int>(stratCols.Select(col => col.Index)) : new HashSet<int>(); 114if (Utils.Size(stratCols) > 0)
Evaluators\MulticlassClassificationEvaluator.cs (1)
112Host.Assert(Utils.Size(score) == 1);
Microsoft.ML.EntryPoints (1)
FeatureCombiner.cs (1)
57if (Utils.Size(feats) == 0)
Microsoft.ML.Recommender (3)
MatrixFactorizationPredictor.cs (2)
344_env.Check(Utils.Size(matrixColumnList) == 1, msg); 349_env.Check(Utils.Size(matrixRowList) == 1, msg);
RecommenderUtils.cs (1)
56int kindCount = Utils.Size(data.Schema.GetColumns(role));