Torch - Higher Order Interactions
Project description
THOI: Torch - Higher Order Interactions
Description
THOI is a Python package designed to compute O information in Higher Order Interactions using batch processing. This package leverages PyTorch for efficient tensor operations.
Installation
Prerequisites
Ensure you have Python 3.6 or higher installed.
Installing THOI with your prefered Versions of PyTorch
Because PyTorch installation can depend on the user environment and requirements (GPU or CPU support or a specific version of PyTorch), you need to install PyTorch separately before installing THOI. Follow these steps:
-
Visit the official PyTorch installation guide:
- Go to the PyTorch website and navigate to the "Get Started" page.
- Select your preferences for the following options:
- PyTorch Build: Stable or LTS (long-term support)
- Your Operating System: Linux, Mac, or Windows
- Package: Pip (recommended)
- Language: Python
- Compute Platform: CPU, CUDA 10.2, CUDA 11.1, etc.
-
Get the Installation Command:
-
Based on your selections, the PyTorch website will provide the appropriate installation command.
-
For example, for the CPU-only version, the command will look like this:
pip install torch==1.8.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
-
For the GPU version with CUDA 11.1, the command will look like this:
pip install torch==1.8.1+cu111 -f https://download.pytorch.org/whl/torch_stable.html
-
-
Install PyTorch:
- Copy and run the command provided by the PyTorch website in your terminal.
-
Install THOI:
-
Once PyTorch is installed, install THOI using:
pip install thoi
-
Usage
After installation, you can start using THOI in your projects. Here is a simple example:
from thoi.measures.gaussian_copula import multi_order_measures
import numpy as np
X = np.random.normal(0,1, (1000, 10))
measures = multi_order_measures(X)
For detailed usage and examples, please refer to the documentation.
Contributing
We welcome contributions from the community. If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on GitHub.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Authors
For more details, visit the GitHub repository.
Project details
Release history Release notifications | RSS feed
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 thoi-0.1.12.tar.gz
.
File metadata
- Download URL: thoi-0.1.12.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86aeb051adea4c8249f33eda4c43b7602b8f5cbd8622cd194b156e1ab0e78399 |
|
MD5 | a811f135d298d5eba7780459d70d0b32 |
|
BLAKE2b-256 | cc747e579f9dc82968b5691fa1931cacfbd0b467fc734c5ec145b8366b7e9c81 |
File details
Details for the file thoi-0.1.12-py3-none-any.whl
.
File metadata
- Download URL: thoi-0.1.12-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffe53bc0f447d8902938497c0a3c1474b14241e2e36fe963128fcddaa3631348 |
|
MD5 | 45c593b492d195012fc920294abb2e14 |
|
BLAKE2b-256 | 02ecad6ae9a017e018bd2c3bacb3223b3bd4f499a9a1957a66c5a87bc30d09b0 |