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