Code Monkey home page Code Monkey logo

alphago-zero-implementation-using-reinforcement-learning's Introduction

AlphaGo Zero Implementation Using Reinforcement Learning.

This is my implementation of the DeepMind's AlphaZero algorithm for the Game of Go. For reference, Mastering the game of Go without human knowledge

Our source code consists of the following files inside the utils_6 folder :

  • policyValueNet.py : Architecture and training procedure for the neural network
  • MCTS.py : Gives policy for a given state after running MCTS for 100 simulations.
  • selfPlay.py : Starts training the model after loading the latest checkpoint
  • utils.py : Contains helper functions to be used for MCTS & Policy-Value Network
  • config.py : Parameters required for the configuration
  • enums.py : Enumeration class for BLACK & WHITE colours

To install the dependencies of this project, run: pip install -r requirements.txt

To download the model in model_6 folder: sh download_model_6.sh

To start the train (best checkpoint will be automatically loaded): sh train.sh

To start playing with AlphaGoPlayer_6.py against a random/fixed agent, execute: python tournament.py

To visualise the decrement in the loss of policy & value (inside the utils_6 folder): tensorboard logdirs='./logs' --port=6006

Video Presentation of Project:

https://youtu.be/QFFr5hk9AMY

Report:

https://drive.google.com/file/d/1ySijuY1zqv6LzkQSo0Fgf7zP9mCWvexQ/view?usp=sharing

alphago-zero-implementation-using-reinforcement-learning's People

Contributors

dependabot[bot] avatar rkc007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

reagan23 neha3010

alphago-zero-implementation-using-reinforcement-learning'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.