7.3.6. mclearn.heuristics.compute_A

mclearn.heuristics.compute_A(X, pi, classes)[source]

Compute the A matrix in the variance estimation technique.

Parameters:
  • X (array) – The feature matrix.
  • pi (array) – The probability matrix predicted by the classifier.
  • classes (array) – The list of class names ordered lexicographically.
Returns:

A – The A matrix as part of the variance calcucation.

Return type:

array