2 writes to LabelCardinality
Microsoft.ML.Transforms (2)
Dracula\CountTable.cs (2)
62
LabelCardinality
= labelCardinality;
93
LabelCardinality
= ctx.Reader.ReadInt32();
25 references to LabelCardinality
Microsoft.ML.Transforms (25)
Dracula\CMCountTable.cs (8)
53
Contracts.Assert(
LabelCardinality
> 0);
93
Tables = new Dictionary<int, float>[
LabelCardinality
][];
94
for (int i = 0; i <
LabelCardinality
; i++)
130
for (int iLabel = 0; iLabel <
LabelCardinality
; iLabel++)
147
Contracts.Assert(counts.Length ==
LabelCardinality
);
149
for (int ilabel = 0; ilabel <
LabelCardinality
; ilabel++)
237
: base(Math.Max(labelCardinality, table.
LabelCardinality
))
250
if (iLabel < table.
LabelCardinality
)
Dracula\CountTable.cs (11)
76
var d = 1.0 /
LabelCardinality
;
77
for (int i = 0; i <
LabelCardinality
; i++)
94
env.CheckDecode(0 <
LabelCardinality
&&
LabelCardinality
< LabelCardinalityLim);
97
env.CheckDecode(Utils.Size(_priorFrequencies) ==
LabelCardinality
);
108
env.CheckDecode(Utils.Size(_garbageCounts) ==
LabelCardinality
);
125
Contracts.Assert(0 <
LabelCardinality
&&
LabelCardinality
< LabelCardinalityLim);
126
ctx.Writer.Write(
LabelCardinality
);
128
Contracts.Assert(Utils.Size(_priorFrequencies) ==
LabelCardinality
);
139
Contracts.Assert(Utils.Size(_garbageCounts) ==
LabelCardinality
);
Dracula\DictCountTable.cs (6)
74
Tables = new Dictionary<long, float>[
LabelCardinality
];
75
for (int iTable = 0; iTable <
LabelCardinality
; iTable++)
118
Contracts.Check(counts.Length ==
LabelCardinality
);
119
for (int ilabel = 0; ilabel <
LabelCardinality
; ilabel++)
182
: base(Math.Max(labelCardinality, table.
LabelCardinality
))
188
if (i < table.
LabelCardinality
)