17 references to GetCountAsInt32
Microsoft.ML.Data (10)
Scorers\ClusteringScorer.cs (1)
103int keyCount = Bindings.PredColType is KeyDataViewType key ? key.GetCountAsInt32(Host) : 0;
Transforms\KeyToVector.cs (3)
472int size = keyTypeSrc.GetCountAsInt32(Host); 510int size = keyTypeSrc.GetCountAsInt32(Host); 557int size = keyTypeSrc.GetCountAsInt32(Host);
Transforms\ValueToKeyMappingTransformerImpl.cs (6)
1060builder.AddKeyValues(TypedMap.OutputType.GetCountAsInt32(_host), TextDataViewType.Instance, getter); 1069builder.AddKeyValues(TypedMap.OutputType.GetCountAsInt32(_host), TypedMap.ItemType, getter); 1128_host.Assert(srcMeta.Length == srcType.GetCountAsInt32(_host)); 1132var editor = VBufferEditor.Create(ref dst, TypedMap.OutputType.GetCountAsInt32(_host)); 1145int keyCount = TypedMap.OutputType.GetCountAsInt32(_host); 1205if (srcMeta.Length != srcType.GetCountAsInt32(_host))
Microsoft.ML.FastTree (1)
TreeEnsembleFeaturizer.cs (1)
771int[] 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)
146labelCount = labelKeyType.GetCountAsInt32(Host);