Giter Site home page Giter Site logo

go-score-estimator's Introduction

go-sequence

Neural network (using tensorflow) to predict the winner of a go game from the board position. Currently overfit on random positions of 10k high level games on tygem. Training for 400k games in is progress (using https://github.com/SThornewillvE/Pet-Project---Tygem-Fuseki-Web-Scraper-using-Python)

How to use

Requires python 3 with the numpy and tensorflow modules.

Training

Create an sgf folder with a collection of sgf files. Then, run parseSgf.py, which will create the records dataset from the sgf files. Only files that are valid and give a score will be parsed, the rest will be discarded.

Finally, run py scoreEstimation.py to train the network using the records dataset.

The program will load the session stored in the model folder. Rename it to archive it and start training from a newer one.

Testing

Simply run py scoreEstimation.py $SGF where $SGF is the path to your sgf file.

A positive score indicates black has a lead on the board, a negative one indicates white has a lead on the board. Komi is not taken into account and has to be subtracted from the score.

go-score-estimator's People

Contributors

cboittin avatar

Stargazers

LarryLiu avatar

Watchers

 avatar LarryLiu avatar

go-score-estimator'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.