mdentropy.cmutinf¶
-
mdentropy.
cmutinf
(n_bins, x, y, z, rng=None, method='knn')¶ Conditional mutual information calculation
Parameters: n_bins : int
Number of bins.
x : array_like, shape = (n_samples, n_dim)
Conditioned variable
y : array_like, shape = (n_samples, n_dim)
Conditioned variable
z : array_like, shape = (n_samples, n_dim)
Conditional variable
rng : list
List of min/max values to bin data over.
method : {‘kde’, ‘chaowangjost’, ‘grassberger’, ‘knn’, None}
Method used to calculate entropy.
Returns: entropy : float