概要
Python package for calculating various information measures, including entropy, mutual information, transfer entropy, and more, with support for both discrete and continuous variables.
科学・工学計測したスター増加
- 24時間
- 0
- 7日間
- +1
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル[!IMPORTANT] ⚡ Rust implementation now available! All core measures have been reimplemented in
infomeasure-rs(crate docs) with compile-time type safety, GPU acceleration, and even faster execution. Check out the Rust Guide if you need maximum performance for production or large-scale analysis. Find the benchmark and interactive Rust vs Python performance comparison here. The Rust implementation is published in Entropy: https://doi.org/10.3390/e28121309.
Continuous and discrete entropy and information measures using different estimation techniques.
For details on how to use this package, see the Guide or the Documentation.
Cited in research
infomeasure is used across research fields (selection, as of August 2026):
- A. Berke, E. Bacis and U. Syed, An Improved Entropy Measure for Web Browser Fingerprinting Risk, Proceedings on Privacy Enhancing Technologies, 2026.
- Y. Bel-Hadj et al., Inferring wind turbine operational state and fatigue from high-frequency acceleration using self-supervised learning for SCADA-free monitoring, Wind Energy Science, 2026.
- L. Tiawongsuwan et al., Autism spectrum disorder disrupts brain network connectivity maturation during childhood development, Scientific Reports, 2025.
- L. H. McCabe and H. H. Huang, SENECA: Small-Sample Discrete Entropy Estimation via Self-Consistent Missing Mass, arXiv:2605.00668, 2026.
- R. García-Leal et al., Functional Connectivity Between Human Motor and Somatosensory Areas During a Multifinger Tapping Task: A Proof-of-Concept Study, NeuroSci, 2026.
See all citations on Semantic Scholar.
Setup
This package can be installed from PyPI using pip:
pip install infomeasure
This will automatically install all the necessary dependencies as specified in the
pyproject.toml file. It is recommended to use a virtual environment, e.g. using
conda, mamba or micromamba (they can be used interchangeably).
infomeasure can be installed from the conda-forge channel.
conda create -n im_env -c conda-forge python
conda activate im_env
conda install -c conda-forge infomeasure
Development Setup
For development, we recommend using micromamba to create a virtual
environment (conda or mamba also work)
and installing the package in editable mode.
After cloning the repository, navigate to the root folder and
create the environment with the desired python version and the dependencies.
micromamba create -n im_env -c conda-forge python
micromamba activate im_env
To let micromamba handle the dependencies, use the requirements files
micromamba install -f requirements/build_requirements.txt \
-f requirements/linter_requirements.txt \
-f requirements/test_requirements.txt \
-f requirements/doc_requirements.txt
pip install --no-build-isolation --no-deps -e .
Alternatively, if you prefer to use pip, installing the package in editable mode will
also install the
development dependencies.
pip install -e ".[all]"
Now, the package can be imported and used in the python environment, from anywhere on the system if the environment is activated. For new changes, the repository only needs to be updated, but the package does not need to be reinstalled.
Set up Jupyter kernel
If you want to use infomeasure with its environment im_env in Jupyter, run:
pip install --user ipykernel
python -m ipykernel install --user --name=im_env
This allows you to run Jupyter with the kernel im_env (Kernel > Change Kernel >
im_env)
Contributing
Before opening a PR, read CONTRIBUTING.md, including the Use of AI policy. AI assistance is welcome, but a human author must understand and explain the change.
Acknowledgments
This project has received funding from the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme (grant agreement No 851255). This work was partially supported by the María de Maeztu project CEX2021-001164-M funded by the MICIU/AEI/10.13039/501100011033 and FEDER, EU.
関連プロジェクトを探す
読み込み中…