Skip to main content

Comprehensive collection of information measures.

Project description

Documentation PyPI Version Python Version Anaconda Version PyPI Downloads

arXiv DOI Ruff Contributor Covenant

pipeline status coverage report

[!IMPORTANT] ⚡ Rust implementation now in beta! 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.

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.

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)

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infomeasure-0.6.1.tar.gz (175.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

infomeasure-0.6.1-py3-none-any.whl (266.2 kB view details)

Uploaded Python 3

File details

Details for the file infomeasure-0.6.1.tar.gz.

File metadata

  • Download URL: infomeasure-0.6.1.tar.gz
  • Upload date:
  • Size: 175.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for infomeasure-0.6.1.tar.gz
Algorithm Hash digest
SHA256 63637cedc92558c97b893800126e4fbd54d38f55819e4c9c1eef06f73f157368
MD5 47dae399dce444579b0feaf5955a3348
BLAKE2b-256 07353efa33dbd94d4f6b5771f4d661bec94b0a5912319ac4a7a415fd2997939e

See more details on using hashes here.

File details

Details for the file infomeasure-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: infomeasure-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 266.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for infomeasure-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93092ab0db121166e90be6828a525265254537509f3d09fca4c15b4cd74532d3
MD5 87875f2575b6f4075402d69b88afdba8
BLAKE2b-256 aaf9a8538fd8f55826f806e3bacfea4e06843c54a468d4146e94b9b714595e18

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page