2 writes to _labelCardinality
Microsoft.ML.Core (2)
Utilities\SupervisedBinFinder.cs (2)
66
_labelCardinality
= nLabels;
144
_labelCardinality
= nLabels;
10 references to _labelCardinality
Microsoft.ML.Core (10)
Utilities\SupervisedBinFinder.cs (10)
82
_cumulativeCounts = new int[_distinctValueCount,
_labelCardinality
+ 1];
96
for (int i = 0; i <
_labelCardinality
+ 1; i++)
101
_cumulativeCounts[curIndex,
_labelCardinality
]++;
160
_cumulativeCounts = new int[_distinctValueCount,
_labelCardinality
+ 1];
174
for (int i = 0; i <
_labelCardinality
+ 1; i++)
179
_cumulativeCounts[curIndex,
_labelCardinality
]++;
263
var delta = logN - binFinder.
_labelCardinality
* (totalEntropy - leftEntropy - rightEntropy);
284
totalCount = _cumulativeCounts[lim - 1,
_labelCardinality
];
286
totalCount -= _cumulativeCounts[min - 1,
_labelCardinality
];
287
for (int i = 0; i <
_labelCardinality
; i++)