7.3.8. mclearn.heuristics.compute_pool_variance

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

Estimate the variance of the pool.

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:

variance – The estimated variance on the pool X.

Return type:

float