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 git+https://github.com/victorgabillon/coral.git@main

Requirements

  • Python >= 3.13
  • PyTorch
  • valanga (board game library)

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_content_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

Download files

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

Source Distribution

algorhino_coral-0.1.14.tar.gz (38.8 kB view details)

Uploaded Source

Built Distribution

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

algorhino_coral-0.1.14-py3-none-any.whl (40.7 kB view details)

Uploaded Python 3

File details

Details for the file algorhino_coral-0.1.14.tar.gz.

File metadata

  • Download URL: algorhino_coral-0.1.14.tar.gz
  • Upload date:
  • Size: 38.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for algorhino_coral-0.1.14.tar.gz
Algorithm Hash digest
SHA256 8a752960a3561048e97346e43fa13ebafacefd8deefe73cc8e47593d146ec253
MD5 a755aaf0ae0944c0f41403ac61399fbb
BLAKE2b-256 aa1d1777b6ac79512d01e34d41e266a85be4356b495888d4c119ae0e2bfc02bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for algorhino_coral-0.1.14.tar.gz:

Publisher: release.yml on victorgabillon/coral

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file algorhino_coral-0.1.14-py3-none-any.whl.

File metadata

File hashes

Hashes for algorhino_coral-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 64060762ad485cd1d8b4945ddce55b64612d45d076eb360a926c864cac169c8a
MD5 ed322a938c839acbbd05c7dd620b8eca
BLAKE2b-256 6fc81ac22d2eb190983e76cad7379d713c205238b908e2b523701d470ce28e16

See more details on using hashes here.

Provenance

The following attestation bundles were made for algorhino_coral-0.1.14-py3-none-any.whl:

Publisher: release.yml on victorgabillon/coral

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.14 This release

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.4

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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