Higher Order Interactions
Project description
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
Link to the documentation: https://brainets.github.io/hoi/
Overview of the mathematical background : https://brainets.github.io/hoi/theory.html
List of implemented HOI metrics : https://brainets.github.io/hoi/api/modules.html
Examples : https://brainets.github.io/hoi/auto_examples/index.html
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
Built Distribution
File details
Details for the file hoi-0.0.3.tar.gz
.
File metadata
- Download URL: hoi-0.0.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6448b5a42bfbe53e8c034c3e5f5eb540a2182c76dc924f8ea2d72f5fc3a584f |
|
MD5 | ac66bf1ef0b46e7ff4e210bd15ec0ca3 |
|
BLAKE2b-256 | c19e3f8356756c3faaafc665d670f9a1881ffc9bbbc263cbadacb205090d2b3d |
Provenance
The following attestation bundles were made for hoi-0.0.3.tar.gz
:
Publisher:
pypi-publish.yml
on brainets/hoi
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
hoi-0.0.3.tar.gz
- Subject digest:
e6448b5a42bfbe53e8c034c3e5f5eb540a2182c76dc924f8ea2d72f5fc3a584f
- Sigstore transparency entry: 145047257
- Sigstore integration time:
- Predicate type:
File details
Details for the file hoi-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: hoi-0.0.3-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8dbcc6e46c6454acc44e75d341827cbc289715eb439ae5ae7f7bb4093f93679 |
|
MD5 | 3e8ac9490570156b3f092055e0a4a8cb |
|
BLAKE2b-256 | 019ed5ebedfd5ca7132f7f0a5fb1fd061e14a8d2ad205140180955168bb890d7 |
Provenance
The following attestation bundles were made for hoi-0.0.3-py3-none-any.whl
:
Publisher:
pypi-publish.yml
on brainets/hoi
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
hoi-0.0.3-py3-none-any.whl
- Subject digest:
b8dbcc6e46c6454acc44e75d341827cbc289715eb439ae5ae7f7bb4093f93679
- Sigstore transparency entry: 145047258
- Sigstore integration time:
- Predicate type: