Installation

Basic Installation

You can install PyC with core dependencies from PyPI:

pip install --pre pytorch-concepts

This will install the core library without data-related dependencies (opencv-python, pgmpy, bnlearn, pandas, torchvision, datasets, transformers).

Installation with Data Support

If you plan to use the torch_concepts.data module, install with the data extras:

pip install --pre pytorch-concepts[data]

This will install all dependencies including those required for data loading and preprocessing.

Usage

After installation, you can import it in your Python scripts as:

import torch_concepts as pyc