treeple.datasets.approximate_clf_mutual_information#
- treeple.datasets.approximate_clf_mutual_information(means, covs, class_probs=[0.5, 0.5], base=np.float64(2.718281828459045), seed=None)[source]#
Approximate MI for multivariate Gaussian for a classification setting.
- Parameters:
- means
list
of ArrayLike of shape (n_dim,) A list of means to sample from for each class.
- covs
list
of ArrayLike of shape (n_dim, n_dim) A list of covariances to sample from for each class.
- class_probs
list
, optional List of class probabilities, by default [0.5, 0.5] for balanced binary classification.
- base
float
, optional The bit base to use, by default np.exp(1) for natural logarithm.
- seed
int
, optional Random seed for the multivariate normal, by default None.
- means
- Returns: