Skip to main content

Coral

A PyTorch-based neural network library for board game evaluation.

Overview

Coral provides a flexible framework for building and deploying neural networks to evaluate board game positions. It includes modular components for input conversion, neural network architectures, and output interpretation.

Features

  • Multiple NN Architectures: Multi-layer perceptrons, transformers, and custom models
  • Flexible Input/Output Conversion: Modular converters for different board representations and evaluation formats
  • Point-of-View Evaluation: Support for evaluating positions from different player perspectives
  • PyTorch Integration: Built on PyTorch with JIT compilation support for optimized inference

Installation

pip install algorhino-coral==0.2.0

Release 0.2.0 uses the published valanga==0.3.0. Run tox --workdir /path/to/private/coral-tox for complete validation. requirements/validation-py314.txt pins the verified public Valanga wheel and stable CPU PyTorch artifact by URL and SHA-256 for both local tox and CI.

Requirements

  • Python >= 3.14; validated with standard CPython 3.14.10, GIL enabled, PYTHON_JIT=0
  • PyTorch >= 2.14.1 (2.14.1+cpu is validated; no release candidate)
  • Valanga 0.3.0

Project Structure

src/coral/
├── board_evaluation.py          # Point-of-view and evaluation types
├── chi_nn.py                     # Base neural network class
└── neural_networks/
    ├── factory.py                # NN factory pattern
    ├── nn_state_evaluator.py   # Board evaluation with NNs
    ├── models/                   # NN architectures (MLP, Transformer)
    ├── input_converters/         # Board to tensor conversion
    └── output_converters/        # NN output to evaluation conversion

License

GPL-3.0-only

Metadata

Release files for algorhino-coral 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for algorhino-coral 0.2.0
File Size Uploaded Provenance Actions
algorhino_coral-0.2.0.tar.gz 42.6 kB With provenance Details for algorhino_coral-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for algorhino-coral 0.2.0
File Interpreter ABI Platform Actions
algorhino_coral-0.2.0-py3-none-any.whl Python 3 none any Details for algorhino_coral-0.2.0-py3-none-any.whl

Total release size: 83.7 kB

Release files / algorhino_coral-0.2.0.tar.gz

Download URL algorhino_coral-0.2.0.tar.gz
Size 42.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bd5b3656847d0b8271f5318cfbc0b41a7f0efa2b6ccf922fe68b40cef28a7e7a
BLAKE2b-256 checksum
How to use checksums
97e7349b47c93b390844eaf97f4fcd5482c8e16934a572fb98f8da88944ccbf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / algorhino_coral-0.2.0-py3-none-any.whl

Download URL algorhino_coral-0.2.0-py3-none-any.whl
Size 41.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67048523ba4029818f789f405a364cbbbaef2d8418d4fab6d82a0cbb8fc1f73d
BLAKE2b-256 checksum
How to use checksums
0c9363896ccb844bac14d8ca09f779fef4199b024ec2c5b422ede0d1cdd8690d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for algorhino-coral 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for algorhino_coral-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page