estimator#
- infomeasure.estimator(*data, cond=None, measure: str = None, approach: str = None, step_size: int = 1, prop_time: int = 0, src_hist_len: int = 1, dest_hist_len: int = 1, cond_hist_len: int = 1, **kwargs: any) EstimatorType[source]#
Get an estimator for a specific measure.
This function provides a simple interface to get an
Estimatorfor a specific measure.If you are only interested in the global result, use the functional interfaces:
Estimators available:
- Entropy:
bayes:Bayesian entropy estimator.bonachela:Bonachela entropy estimator.[
chao_shen,cs]:Chao-Shen entropy estimator.[
chao_wang_jost,cwj]:Chao Wang Jost entropy estimator.discrete:Discrete entropy estimator.grassberger:Grassberger entropy estimator.kernel:Kernel entropy estimator.[
metric,kl]:Kozachenko-Leonenko entropy estimator.[
miller_madow,mm]:Miller-Madow entropy estimator.[
ordinal,symbolic,permutation]:Ordinal / Permutation entropy estimator.renyi:Renyi entropy estimator.[
shrink,js]:Shrinkage (James-Stein) entropy estimator.tsallis:Tsallis entropy estimator.zhang:Zhang entropy estimator.
- Mutual Information:
bonachela:Bonachela mutual information estimator.chao_shen:Chao-Shen mutual information estimator.chao_wang_jost:Chao Wang Jost mutual information estimator.discrete:Discrete mutual information estimator.grassberger:Grassberger mutual information estimator.[
metric,ksg]:Kraskov-Stoegbauer-Grassberger mutual information estimator.[
miller_madow,mm]:Miller-Madow mutual information estimator.nsb:NSB (Nemenman-Shafee-Bialek) mutual information estimator.[
ordinal,symbolic,permutation]:Ordinal mutual information estimator.shrink:Shrinkage (James-Stein) mutual information estimator.
- Transfer Entropy:
bonachela:Bonachela transfer entropy estimator.chao_shen:Chao-Shen transfer entropy estimator.chao_wang_jost:Chao Wang Jost transfer entropy estimator.discrete:Discrete transfer entropy estimator.grassberger:Grassberger transfer entropy estimator.[
metric,ksg]:Kraskov-Stoegbauer-Grassberger transfer entropy estimator.[
miller_madow,mm]:Miller-Madow transfer entropy estimator.nsb:NSB (Nemenman-Shafee-Bialek) transfer entropy estimator.[
ordinal,symbolic,permutation]:Ordinal transfer entropy estimator.tsallis:Tsallis transfer entropy estimator.
- Parameters:
- *data
The data used to estimate the measure. For entropy: a single array-like data. A tuple of data for joint entropy. For cross-entropy: two array-like data. Second input RV relative to the first. For mutual information: arbitrary number of array-like data. For transfer entropy: two array-like data. Source and destination.
- condarray_like,
optional Only if the measure is conditional transfer entropy.
- measure
str The measure to estimate. Options:
entropy,cross_entropy,mutual_information,transfer_entropy,conditional_mutual_information,conditional_transfer_entropy; aliases:h,hx,mi,te,cmi,cte.- approach
str The name of the estimator to use. Find the available estimators in the docstring of this function.
- *args: tuple
Additional arguments to pass to the estimator.
- **kwargs: dict
Additional keyword arguments to pass to the estimator.
- Returns:
EstimatorThe estimator instance.
- Raises:
ValueErrorIf the measure is not recognised.