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)
687if (Utils.Size(_contingencyTable[0]) < numFeatures) 690Array.Resize(ref _contingencyTable[i], numFeatures); 694Array.Clear(_contingencyTable[i], 0, numFeatures); 703_labelSums[i] += _contingencyTable[i][j]; 704_featureSums[j] += _contingencyTable[i][j]; 713if (_contingencyTable[i][j] > 0) 714score += _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]++;