Skip to main content

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:

  1. 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.
  2. 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
      
  3. Install PyTorch:

    • Copy and run the command provided by the PyTorch website in your terminal.
  4. 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


Download files

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

Source Distribution

thoi-0.1.13.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

thoi-0.1.13-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file thoi-0.1.13.tar.gz.

File metadata

  • Download URL: thoi-0.1.13.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

Hashes for thoi-0.1.13.tar.gz
Algorithm Hash digest
SHA256 bf0449df44e94ca86cb91326c23a236ae934c20487ad452c1cca3be601c28aea
MD5 363850b6987f8863b9b18392657e0424
BLAKE2b-256 068eebcaba64460678d28795f408cd4b3fc9bbb9b51048006e4577a3e33047a7

See more details on using hashes here.

File details

Details for the file thoi-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: thoi-0.1.13-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

Hashes for thoi-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 7d29034a63a84c10220a030421b2fb14e4c4893410cdb87215992a70699c19a8
MD5 9f069c2ff4007ace926c0fefda700eb8
BLAKE2b-256 06523eae0ffea9628061de7356671b45527897a80a84ea8b64edb52fb3378a0b

See more details on using hashes here.

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