Skip to main content

Higher Order Interactions

Project description

Black Codecov

https://github.com/brainets/hoi/blob/main/docs/_static/hoi-logo.png

Description

HOI (Higher Order Interactions) is a Python package to go beyond pairwise interactions by quantifying the statistical dependencies between 2 or more units using information-theoretical metrics. The package is built on top of Jax allowing computations on CPU or GPU.

Installation

Dependencies

HOI requires :

  • Python (>= 3.8)

  • numpy(>=1.22)

  • scipy (>=1.9)

  • jax

  • pandas

  • scikit-learn

  • jax-tqdm

  • tqdm

User installation

To install Jax on GPU or CPU-only, please refer to Jax’s documentation : https://jax.readthedocs.io/en/latest/installation.html

If you already have a working installation of NumPy, SciPy and Jax, the easiest way to install hoi is using pip:

pip install -U hoi

You can also install the latest version of the software directly from Github :

pip install git+https://github.com/brainets/hoi.git

For developers

For developers, you can install it in develop mode with the following commands :

git clone https://github.com/brainets/hoi.git
cd hoi
pip install -e .['full']

The full installation of HOI includes additional packages to test the software and build the documentation :

  • pytest

  • pytest-cov

  • codecov

  • xarray

  • sphinx!=4.1.0

  • sphinx-gallery

  • pydata-sphinx-theme

  • sphinxcontrib-bibtex

  • numpydoc

  • matplotlib

  • flake8

  • pep8-naming

  • black

Help and Support

Documentation

Communication

For questions, please use the following link : https://github.com/brainets/hoi/discussions

Acknowledgments

HOI was mainly developed during the Google Summer of Code 2023 (https://summerofcode.withgoogle.com/archive/2023/projects/z6hGpvLS)

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

hoi-0.0.5.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

hoi-0.0.5-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

Details for the file hoi-0.0.5.tar.gz.

File metadata

  • Download URL: hoi-0.0.5.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hoi-0.0.5.tar.gz
Algorithm Hash digest
SHA256 69432c41ed5c2880236038dcdd48c2e58ba3e941ff21333b5f67a8c8bba4d582
MD5 db59d247600f8e9e0b11d3c1c54b3233
BLAKE2b-256 a2d9339d8601982ad72f41395fd3b22451d7b1ed396afccc500b6e93bbd886c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for hoi-0.0.5.tar.gz:

Publisher: pypi-publish.yml on brainets/hoi

Attestations:

File details

Details for the file hoi-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: hoi-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 49.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hoi-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fe0cb9289281ae6f539efe55e33dd34331b7a9feccad873c2a25f650ea2029ee
MD5 1b5cf41378e6408cdc1f9df746cf0a41
BLAKE2b-256 54b0219b629138fd4288e7de4e87dcb7739e9537a29b10034cf3916a86cbe1d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for hoi-0.0.5-py3-none-any.whl:

Publisher: pypi-publish.yml on brainets/hoi

Attestations:

Supported by

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