2 writes to NumFeatures
Microsoft.ML.Transforms (2)
Dracula\Featurizer.cs (2)
53NumFeatures = _labelBinCount + _logOddsCount + 1; 82NumFeatures = ctx.Reader.ReadInt32();
10 references to NumFeatures
Microsoft.ML.Transforms (10)
Dracula\CountTableTransformer.cs (4)
616Host.Check((long)valueCount * _parent.Featurizer.NumFeatures < int.MaxValue, "Too large output size"); 617var type = new VectorDataViewType(NumberDataViewType.Single, valueCount, _parent.Featurizer.NumFeatures); 685var outputLength = _parent.Featurizer.NumFeatures; 704var outputLength = _parent.Featurizer.NumFeatures;
Dracula\Featurizer.cs (6)
83_host.CheckDecode(NumFeatures == _labelBinCount + _logOddsCount + 1); 110ctx.Writer.Write(NumFeatures); 129var editor = VBufferEditor.Create(ref featureNames, NumFeatures); 134editor.Values[NumFeatures - 1] = "IsBackoff".AsMemory(); 140_host.Assert(features.Length == NumFeatures); 166features[NumFeatures - 1] = isGarbage ? 1 : 0;