Skip to main content

A Compact Library for Predictive Coding with PyTorch

Project description

Pyromancy Header

PyPI - Version PyPI - Python Version


About

Pyromancy is a compact library for predictive coding, implemented using PyTorch. It takes a minimal approach, providing the core components for building and training predictive coding networks.

Installation

Pyromancy is available as a package on PyPI and can be installed as follows.

pip install pyromancy-ai

By default, this installs the torch and torchvision packages with only CPU support (Linux/Windows) or support for CPU and MPS (macOS). To include support for CUDA or ROCm, a corresponding extra-index-url must be specified.

pip install pyromancy-ai --extra-index-url https://download.pytorch.org/whl/cu128

Installing with this command includes support for CPU and for CUDA 12.8. The installation options can be found on PyTorch's getting started page.

Getting Started

See the example, Classifying MNIST with a Hierarchical PCN, for a complete worked-out example of how to build and train a predictive coding network.

License

Pyromancy is distributed under the terms of the BSD-3-Clause license.

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

pyromancy_ai-0.0.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyromancy_ai-0.0.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file pyromancy_ai-0.0.1.tar.gz.

File metadata

  • Download URL: pyromancy_ai-0.0.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pyromancy_ai-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3b50e5c46697c44a257f24be44dd0294b20aa8c81ec819623068f591ca8eb4ba
MD5 62509580945e7a5c527067cc4d62e251
BLAKE2b-256 8a41bade50d4c5477560963896f7dba5821a0c26121f11552472b63908d199b1

See more details on using hashes here.

File details

Details for the file pyromancy_ai-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyromancy_ai-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pyromancy_ai-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac4e11a8d478e7de63b2400a8698479dec89027c81daa4bc341b97e5a02553dd
MD5 1e0b252028585690d406a947a20aa4c5
BLAKE2b-256 c7d77e5d87413128b7230862b7ee2ba634abf309dbb05a962ff10c5f7b21d26b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page