Skip to main content

Shared types and utilities for evalaution

Project description

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

Author

Victor Gabillon (victorgabillon@gmail.com)

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

algorhino_coral-0.1.1.tar.gz (29.5 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.1-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for algorhino_coral-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a111b5e8c5d2edcb9efc4f6b638d8d0ae29fd0deafe078bbab6047927152116f
MD5 0af250bef4193930a7c2e315133beb00
BLAKE2b-256 eeeb0e32a6dd9c7f75338a61e76cd189165ab2d208135dd1a3b5a1dca5bb081b

See more details on using hashes here.

Provenance

The following attestation bundles were made for algorhino_coral-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for algorhino_coral-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6b6447f6a90f8eb85e6c6c8f1a0b2df3fcb38f942fc8a2af8ec312c485ae5d9
MD5 de8609476d8c7a7f3bf46e4c75cae2f0
BLAKE2b-256 8973d2dabb3c9e95a4cde37138d5b9f29f8e6cba1a46d610a31f3d2a3ea55c9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for algorhino_coral-0.1.1-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.

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