Installation¶
torchtsetlin needs Python 3.9+ and PyTorch 2.0+. Install PyTorch first (pick the CUDA or
CPU build that matches your machine from pytorch.org),
then:
The package is published on PyPI at https://pypi.org/project/torchtsetlin/.
Optional extras:
pip install "torchtsetlin[viz]" # matplotlib for torchtsetlin.viz
pip install "torchtsetlin[vision]" # torchvision for the MNIST helpers
pip install "torchtsetlin[sklearn]" # scikit-learn interop in the examples
pip install "torchtsetlin[all]" # everything, including docs and dev tools
From source:
git clone https://github.com/vlbthambawita/torchtsetlin
cd torchtsetlin
pip install -e ".[dev]"
pytest # run the test-suite (uses the GPU when available)
mkdocs serve # browse this documentation locally