1 write to _contingencyTable
Microsoft.ML.Transforms (1)
MutualInformationFeatureSelection.cs (1)
495
_contingencyTable
= new int[_numLabels][];
10 references to _contingencyTable
Microsoft.ML.Transforms (10)
MutualInformationFeatureSelection.cs (10)
687
if (Utils.Size(
_contingencyTable
[0]) < numFeatures)
690
Array.Resize(ref
_contingencyTable
[i], numFeatures);
694
Array.Clear(
_contingencyTable
[i], 0, numFeatures);
703
_labelSums[i] +=
_contingencyTable
[i][j];
704
_featureSums[j] +=
_contingencyTable
[i][j];
713
if (
_contingencyTable
[i][j] > 0)
714
score +=
_contingencyTable
[i][j] / (double)_labels.Length * Math.Log(
_contingencyTable
[i][j] * (double)_labels.Length / ((double)_labelSums[i] * _featureSums[j]), 2);
739
_contingencyTable
[label][feature]++;
759
_contingencyTable
[label][feature]++;