OrdinalCMIEstimator#
- class infomeasure.estimators.mutual_information.OrdinalCMIEstimator(*data, cond=None, embedding_dim: int = None, step_size: int = 1, stable: bool = False, offset: int = 0, base: int | float | str = 'e', **kwargs)[source]
Bases:
BaseOrdinalMIEstimator,ConditionalMutualInformationEstimatorEstimator for the Ordinal conditional mutual information.
- 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.
- embedding_dim
int The size of the permutation patterns.
- *symbolsarray_like,
shape(n_samples,) The symbolized data used to estimate the mutual information.
- symbols_condarray_like,
shape(n_samples,) The symbolized conditional data used to estimate the conditional mutual information.
- *dataarray_like,
- Raises:
ValueErrorIf the
embedding_dimis negative or not an integer.ValueErrorIf
offsetandembedding_dimare such that the data is too small.
Notes
The order will be determined via
numpy.argsort(). There is nonormalizeoption, as this would not influence the order of the data.If
embedding_dimis set to 1, the mutual information is always 0.