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

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.7.tar.gz (29.7 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.7-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: algorhino_coral-0.1.7.tar.gz
  • Upload date:
  • Size: 29.7 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.7.tar.gz
Algorithm Hash digest
SHA256 cceedb1418c65deac8f7088451430d9493f8430f5deebfdef40f6277967bfce3
MD5 2d1074b8841e7d5e55ab8083981e05cc
BLAKE2b-256 615e5e1b36f8da03a91b9146a9e8db4f7ca97b555be7b7a2bd39d8a8a5d0789b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for algorhino_coral-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6e9ecf6ff26933d746ef670e764d14e114ff745ef56c050ee860c3ccc75c969d
MD5 91f9a7f4c6983c64a6f475a4042d0ca6
BLAKE2b-256 66cfcca4655b2df26682c105956407915226888d96905aeeda259f70f3553125

See more details on using hashes here.

Provenance

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