2 writes to _labelBinCount
Microsoft.ML.Transforms (2)
Dracula\Featurizer.cs (2)
51
_labelBinCount
= (int)labelBinCount;
78
_labelBinCount
= ctx.Reader.ReadInt32();
18 references to _labelBinCount
Microsoft.ML.Transforms (18)
Dracula\Featurizer.cs (18)
52
_logOddsCount =
_labelBinCount
== 2 ? 1 :
_labelBinCount
;
53
NumFeatures =
_labelBinCount
+ _logOddsCount + 1;
79
_host.CheckDecode(
_labelBinCount
> 1);
80
_logOddsCount =
_labelBinCount
== 2 ? 1 :
_labelBinCount
;
83
_host.CheckDecode(NumFeatures ==
_labelBinCount
+ _logOddsCount + 1);
109
ctx.Writer.Write(
_labelBinCount
);
122
classNames = new string[
_labelBinCount
];
123
for (int i = 0; i <
_labelBinCount
; i++)
127
Contracts.Check(Utils.Size(classNames) ==
_labelBinCount
, "incorrect class names");
130
for (int i = 0; i <
_labelBinCount
; i++)
133
editor.Values[
_labelBinCount
+ i] = $"{classNames[i]}_LogOdds".AsMemory();
143
var countsBuffer = features.Slice(0,
_labelBinCount
);
162
GenerateLogOdds(iCol, countTable, countsBuffer, features.Slice(
_labelBinCount
, _logOddsCount), sum);
173
_host.Assert(
_labelBinCount
== counts.Length);
176
for (int ifeat = 0; ifeat <
_labelBinCount
; ifeat++)
194
_host.Assert(counts.Length ==
_labelBinCount
);