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