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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file algorhino_coral-0.1.0.tar.gz.
File metadata
- Download URL: algorhino_coral-0.1.0.tar.gz
- Upload date:
- Size: 29.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4224ab645c965aafbb27b71032722a14b614f273639d024699515e41a9824889
|
|
| MD5 |
87c2072db1d03aac71a44d0dc45bdeef
|
|
| BLAKE2b-256 |
a9e009d067747142376ed086125e9d5b7f4d7d009b06c626fb995b48e87ae795
|
File details
Details for the file algorhino_coral-0.1.0-py3-none-any.whl.
File metadata
- Download URL: algorhino_coral-0.1.0-py3-none-any.whl
- Upload date:
- Size: 33.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6671c774ebdf7e649efce0670e243fed21dda4f4f9f7a357135f7825833a586f
|
|
| MD5 |
406e4bbf8b835fd5d42be68c6a36005b
|
|
| BLAKE2b-256 |
66e848677ba009ceec63af46e2de1e97fb21350c7d83bba92b8a75ab5b5afd5e
|