Giter Club home page Giter Club logo

dlxj / alphago-zero-tictactoe-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grimmer0125/alphago-zero-tictactoe-js

0.0 1.0 0.0 3.72 MB

A JavaScript + TensorFlow.js Porting of https://github.com/suragnair/alpha-zero-general (Python). 1. Import Keras pretrained model and run it successfully 2. self-train from the beginning also works on the browser. Try it: https://grimmer.io/alphago-zero-tictactoe-js/, use "npm run deploy" to upload. 2 output of the network: policy and value.

License: MIT License

JavaScript 93.62% HTML 4.59% CSS 1.80%

alphago-zero-tictactoe-js's Introduction

alphago-zero-tictactoe-js

Installation

npm install

Dev

npm start // build and launch its live dev web server.

After npm start, you can also use VS Code with Debugger for Chrome extension to debug.

Features and done itmes of todo list

  1. Ported the algorithms from alpha-zero-general. Although its name is alpha-zero-general, it is based on AlphaGo Zero algorithm.

  2. Import pretrained models from alpha-zero-general and run alphago game algorithms on Browsers. alpha-zero-general is a project to supply general game AI training frameworks. You can extend that project and add yourself game rule codes and train AI model by using Python.

TODO

  1. Fix bugs to train models by this JavaScript version project. It may be a TensorFlow.js bug. Maybe waitting for native TensorFlow Node.js binding is better than WebGL solution.
  2. Add UI.
  3. Clean up.
  4. Use service worker for cpu heavy loading part.

AlphaZero

To overcome some API limitation (Tensorflow.js export/save model/weights), so this JavaScript repo borrows one of the features of AlphaZero, always accept trained model after each iteration without comparing to previous version

alphago-zero-tictactoe-js's People

Contributors

grimmer0125 avatar

Watchers

 avatar

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.