17 references to GetCountAsInt32
Microsoft.ML.Data (10)
Scorers\ClusteringScorer.cs (1)
103
int keyCount = Bindings.PredColType is KeyDataViewType key ? key.
GetCountAsInt32
(Host) : 0;
Transforms\KeyToVector.cs (3)
472
int size = keyTypeSrc.
GetCountAsInt32
(Host);
510
int size = keyTypeSrc.
GetCountAsInt32
(Host);
557
int size = keyTypeSrc.
GetCountAsInt32
(Host);
Transforms\ValueToKeyMappingTransformerImpl.cs (6)
1060
builder.AddKeyValues(TypedMap.OutputType.
GetCountAsInt32
(_host), TextDataViewType.Instance, getter);
1069
builder.AddKeyValues(TypedMap.OutputType.
GetCountAsInt32
(_host), TypedMap.ItemType, getter);
1128
_host.Assert(srcMeta.Length == srcType.
GetCountAsInt32
(_host));
1132
var editor = VBufferEditor.Create(ref dst, TypedMap.OutputType.
GetCountAsInt32
(_host));
1145
int keyCount = TypedMap.OutputType.
GetCountAsInt32
(_host);
1205
if (srcMeta.Length != srcType.
GetCountAsInt32
(_host))
Microsoft.ML.FastTree (1)
TreeEnsembleFeaturizer.cs (1)
771
int[] permutation = Utils.GetRandomPermutation(RandomUtils.Create(seed), type.
GetCountAsInt32
(env));
Microsoft.ML.LightGbm (3)
LightGbmMulticlassTrainer.cs (3)
296
_numberOfClassesIncludingNan = keyType.
GetCountAsInt32
(Host) + 1;
298
_numberOfClassesIncludingNan = keyType.
GetCountAsInt32
(Host);
299
_numberOfClasses = keyType.
GetCountAsInt32
(Host);
Microsoft.ML.Recommender (2)
MatrixFactorizationPredictor.cs (2)
104
_host.Assert(NumberOfColumns == matrixColumnIndexType.
GetCountAsInt32
(_host));
105
_host.Assert(NumberOfRows == matrixRowIndexType.
GetCountAsInt32
(_host));
Microsoft.ML.StandardTrainers (1)
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (1)
146
labelCount = labelKeyType.
GetCountAsInt32
(Host);