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