NsbCMIEstimator#
- class infomeasure.estimators.mutual_information.NsbCMIEstimator(*data, cond=None, K: int = None, offset: int = 0, base: int | float | str = 'e', **kwargs)[source]
Bases:
BaseNsbMIEstimator,ConditionalMutualInformationEstimatorEstimator for the conditional Nsb mutual information.
Nsb conditional mutual information estimator using the entropy combination formula.
- Attributes:
- *dataarray_like,
shape(n_samples,) The data used to estimate the conditional mutual information. You can pass an arbitrary number of data arrays as positional arguments.
- condarray_like
The conditional data used to estimate the conditional mutual information.
- K
int,optional The support size. If not provided, uses the observed support size.
- offset
int,optional Number of positions to shift the data arrays relative to each other. Delay/lag/shift between the variables. Default is no shift.
- *dataarray_like,
See also
infomeasure.estimators.entropy.nsb.NsbEntropyEstimatorNsb entropy estimator.
Notes
This estimator uses the Nsb entropy estimator to compute conditional mutual information through the entropy combination formula.
Note that the entropy combination formula is used (_generic_cmi_from_entropy) not a dedicated implementation as other MI might have.