1 write to LabelCardinality
Microsoft.ML.Transforms (1)
Dracula\CountTableBuilder.cs (1)
52
LabelCardinality
= (int)labelCardinality;
22 references to LabelCardinality
Microsoft.ML.Transforms (22)
Dracula\CMCountTable.cs (6)
227
_tables = new Dictionary<int, double>[
LabelCardinality
][];
228
for (int iLabel = 0; iLabel <
LabelCardinality
; iLabel++)
241
_tables = new Dictionary<int, double>[
LabelCardinality
][];
244
for (int iLabel = 0; iLabel <
LabelCardinality
; iLabel++)
265
var tables = new Dictionary<int, float>[
LabelCardinality
][];
266
for (int iLabel = 0; iLabel <
LabelCardinality
; iLabel++)
Dracula\CountTableBuilder.cs (3)
53
Contracts.CheckParam(
LabelCardinality
== labelCardinality, nameof(labelCardinality), "Label cardinality must be less than int.MaxValue");
55
PriorCounts = new double[
LabelCardinality
];
60
Contracts.Check(0 <= labelKey && labelKey <
LabelCardinality
);
Dracula\DictCountTable.cs (13)
174
_tables = new Dictionary<long, double>[
LabelCardinality
];
175
for (int i = 0; i <
LabelCardinality
; i++)
184
_tables = new Dictionary<long, double>[
LabelCardinality
];
185
for (int i = 0; i <
LabelCardinality
; i++)
202
var singleTables = new Dictionary<long, float>[
LabelCardinality
];
203
for (int iTable = 0; iTable <
LabelCardinality
; iTable++)
211
for (int iTable = 0; iTable <
LabelCardinality
; iTable++)
220
return new DictCountTable(singleTables,
LabelCardinality
, priorCounts, _garbageThreshold, garbageCounts);
240
var curCounts = new double[
LabelCardinality
];
241
var garbageCounts = new double[
LabelCardinality
];
246
for (int i = 0; i <
LabelCardinality
; i++)
256
for (int i = 0; i <
LabelCardinality
; i++)
261
for (int i = 0; i <
LabelCardinality
; i++)