12 references to Size
Microsoft.ML.Core (3)
Data\RoleMappedSchema.cs (3)
166
Contracts.Assert(Utils.
Size
(kvp.Value) > 0);
306
if (Utils.
Size
(infos) != 1)
307
throw 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)
163
return i => Utils.
Size
(prob) > 0 && i == prob[0].Index || pred(i);
198
var probCol = Utils.
Size
(probInfos) > 0 ? probInfos[0].Name : null;
Evaluators\EvaluatorBase.cs (2)
80
var stratIndices = Utils.
Size
(stratCols) > 0 ? new HashSet<int>(stratCols.Select(col => col.Index)) : new HashSet<int>();
114
if (Utils.
Size
(stratCols) > 0)
Evaluators\MulticlassClassificationEvaluator.cs (1)
112
Host.Assert(Utils.
Size
(score) == 1);
Microsoft.ML.EntryPoints (1)
FeatureCombiner.cs (1)
57
if (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)
56
int kindCount = Utils.
Size
(data.Schema.GetColumns(role));