Skip to content

Arjun-G-Ravi/AI-Chess

Repository files navigation

What is this

This is a AI based Chess Game

TO DO

  • Make a sklearn based model
  • Make a UI in pygame or js or something (using llm)
  • Make a basic model with pytorch, maybe ANN
  • Improve the chess engine so that it can consistently beat me
  • Reinforcement Learning based ?

Current Status

The model overfits.

Model with Smooth L1 loss, l2 and dropout regularisation, AdamW, Trapezoidal scheduler, 32 embedding, train-val = 1M, 10K, bs=10K, warmup=30 alt text

Model with MSE loss, l2 and dropout regularisation, AdamW, Trapezoidal scheduler, 32 embedding, train-val = 1M, 10K, bs=10K, warmup=300 alt text

I've tried

  • diff loss(mse, smooth l1)
  • diff scheduler(trapezoidal, cosing, exponential)
  • adjusted model size
  • dataset is very big and has large variety
  • changing embedding size
  • added dropout, tried with many values
  • AdamW has L2 regularisation inbuild, played around the parameter

No luck in preventing overfitting

Playing game

Clone the repo, Go to GUI, install all requirements and run the python file.

About

AI chess

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published