7.3.7. mclearn.heuristics.compute_F

mclearn.heuristics.compute_F(X, pi, classes, C=1)[source]

Compute the F matrix in the variance estimation technqiue.

Parameters:
  • X (array) – The feature matrix.
  • pi (array) – The probability matrix predicted by the classifier.
  • classes (array) – The list of class names ordered lexicographically.
  • C (float) – The regularisation parameter in logistic regression.
Returns:

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

Return type:

array