Code Monkey home page Code Monkey logo

gameofgodeeplearning's Introduction

Game of Go with Deep Learning

Use Deep Learning to train AI to Play the Game of Go

Generate Training Data for 9x9 Board

To generate game data for 40 9 ร— 9 Go games and store features in features.npy, and labels in labels.npy, run:

python generate_mcts_games.py -n 40 --board-out features.npy --move-out labels.npy

Convolution Network

Convolution network is built using with max pooling layer, cross-entropy loss, softmax activation for last layers, dropout for regularization and rectified linear unit activation function.

Train Convolution Network:

python ./dlgo/mcts_go_cnn_simple.py

Convolution Network Results:

Working on improving convolution network...

This seems low, but it is important to note that the base line for randomly guessing on a 9x9 board is about 1.2% accuracy. We can do better than 8% though. The reason the accuracy is so low for this approach is because the training data is generated by two bots randomly playing against each other. If any move results in one bot winning in a significantly higher share of games, then it is more likely to be a good move.

Since Go has a higher degrees of freedom and it takes a long time to generate data and make decisions, it is import to use optimization techniques such as zobrist hashing and pruning techniques, such as alpha-beta and position evaluation, to reduce the total number and time per games.

Neural Networks Generated using Actual Go Game Records

Working on Improving Neural Network...

Acknowledgements

The general approach is inspired by the book "Deep Learning And The Game of Go" by Kevin Ferguson and Max Pumperla.

gameofgodeeplearning's People

Contributors

jacksonx9 avatar

Watchers

James Cloos avatar  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.