Skip to content

alessiosavi/torch-OChess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Torch o'Chess Documentation

Welcome to the comprehensive documentation for Torch o'Chess, a PyTorch-based chess engine for neural network experimentation.

Documentation Index

Getting Started

Architecture

Neural Network Models

API Reference

  • Data Module - FEN parsing, move/score encoding, datasets
  • Data Generation - Stockfish wrapper, position generation
  • Models - Neural network classes and configurations
  • Training - Trainer, callbacks, metrics
  • Evaluation - Stockfish evaluation
  • Play - Engine and CLI interface

Guides

Reference


Quick Links

Generate Data

python scripts/generate_data.py --num-positions 10000

Train Model

python scripts/train.py --data datasets/train_data.parquet --model resnet

Play Against Model

python scripts/play.py --model checkpoints/best_model.pt

Project Overview

Torch o'Chess is a complete chess neural network system featuring:

Feature Description
Data Generation Stockfish-powered position labeling with good/bad moves
Three Architectures ResNet, Transformer, and Hybrid models
Proper Scoring Side-to-move perspective (the critical fix)
Multi-task Learning Predicts moves, scores, captures, and outcomes
Human Play Terminal interface for playing against the model
Stockfish Evaluation Automated testing at various skill levels

Version

Current version: 0.1.0

License

MIT License - See LICENSE file for details.

About

A Baseline Chess Engine for Experimenting with Neural Networks

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors