Skip to main content

Comprehensive collection of information measures.

Project description

Documentation PyPI Version Python Version Ruff Contributor Covenant

arXiv DOI Anaconda Version

pipeline status coverage report

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.5.0.tar.gz (167.8 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.5.0-py3-none-any.whl (258.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: infomeasure-0.5.0.tar.gz
  • Upload date:
  • Size: 167.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for infomeasure-0.5.0.tar.gz
Algorithm Hash digest
SHA256 13bcd995e044945e82c4f0dda70dd00a899628cedb1f5c0f72d3499a7178c05c
MD5 76dede8e4f97c4ea86c717fabc7dccab
BLAKE2b-256 e219a64b407f9a39ed3f9cfa13a61d74d6739cffcc6ab354c2ee809789fef6d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: infomeasure-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 258.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for infomeasure-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a81e4a48daf18d995edcaa38dbf2debafd6fce5727fbb378e2ca7652bab3f76
MD5 12a9e0aa0b3a7a1dedccd26fd79fb16f
BLAKE2b-256 e51031803e30ba8a428a471bcaf7df0bfcc154917085e18db913caddd952b465

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