Giter Site home page Giter Site logo

vfarah-if / alphago Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pmuens/alphago

0.0 1.0 0.0 17.53 MB

Reference implementation of DeepMinds AlphaGo based on "Deep Learning and the Game of Go"

Nix 0.09% Python 74.82% JavaScript 15.66% HTML 9.43%

alphago's Introduction

AlphaGo

This repository contains a reference implementation of the AlphaGo AI by DeepMind.

How to play

Go

Bot vs. Bot

Run python bot_v_bot.py to let 2 Bots play against each other.

Human vs. Bot

Run python mcts_go.py to play against a bot.

Tic-Tac-Toe

Human vs. Bot

Run python play_ttt.py to play against an unbeatable bot.

Reinforcement Learning

  1. Run python init_ac_agent.py --board-size 9 --output-file ./agents/ac_v1.h5

  2. Run python self_play_ac.py --board-size 9 --learning-agent ./agents/ac_v1.h5 --num-games 5000 --experience-out ./experiences/exp_0001.h5 to let a bot play against itself and store experiences gathered during self play.

  3. Run python train_ac.py --learning-agent ./agents/ac_v1.h5 --agent-out ./agents/ac_v2.h5 ./--lr 0.01 --bs 1024 experiences/exp_0001.h5 to use experience data for agent improvements via Deep Reinforcement Learning.

  4. Run python eval_ac_bot.py --agent1 ./agents/ac_v2.h5 --agent2 ./agents/ac_v1.h5 --num-games 100 to check whether the new bot is stronger.

If the new agent is stronger start with it at 2.

Otherwise go to 2. again to generate more training data. Use multiple experience data files in 3.

Rinse and repeat.

Resources

alphago's People

Contributors

pmuens 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.