Coder Social home page Coder Social logo

barnabasg / ea_checkers Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 3.23 MB

Evolutionary based training implementation for intelligent checkers

TypeScript 71.07% JavaScript 13.39% HTML 14.56% Python 0.98%
board-game checkers checkers-ai coevolution evolutionary-algorithms

ea_checkers's Introduction

EA_checkers

Training

To train, run main.ts with the train method of the Checkers instance included. Training methods can be defined in trainingPatterns.ts and passed to the train method. Many training hyperparameters can be defined for each generation in a training pattern individually, or the key '999' can be used for general hyperparameter configuration. Specific generation hyperparameters will override general hyperparameters if the same parameter is defined in both.

Full generation details are logged to unique log files for each training instance in the ./generation_log directory, and training test scores against random, naive, and guided test bots are in the testScores_log.txt file in the outer directory.

To continue training from any generation of a previous training instance, run the Checkers.continueTrainingFromFile() method. Specify the directory of the file which contains the population data in json format (the file can still have a .txt extension) and provide the training pattern to follow and the generation in the pattern to start from.

Playing

To play against the trained model in your browser, navigate to the outer directory in cmd and run the command npm run dev. Then go to localhost:3000 in your browser.

ea_checkers's People

Contributors

barnabasg avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

ea_checkers's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.