Giter Site home page Giter Site logo

gobl's Introduction

gobl

Go machine learning library

Build Status


This is the base of a machine learning system for the game of Go. It provides components broken up into the following sections

goblb -- utilities for dealing with boards and playing games
gobld -- higher-level driver utilities for playing sgf's and
         iterating through games
gobll -- abstract classes for ML models
goblr -- utilities for creating representations or
         features used in the ML models
gobls -- utilities for parsing sgf files
goblu -- low-level utilities

Specifically, goblr provides utilities for creating the tensors that be used in the tensorflow, namely

  • liberties -- a group of matrices parameterized in the perspective (whose turn it is) and a level. Each number of liberties up to that level will have its own matrix, only the groups on the board with a number of liberties of that size will have a value of 1.0 in their respective locations in the matrix.
  • ko -- a matrix that has a value of 1.0 only in a place where there is currently an active ko.

Building

To build the library run

make lib

which will populate gobl/include with the library headers.

If the user has gtest installed on their system, a test suite can be built by setting GTEST_DIR to the location that gtest is installed

GTEST_DIR=/my/gtest/dir make gtest

Example

An example main has been provided that allows the user to play games against himself. There is also an option --parse filename to parse and then print an sgf file.

This can be built with

make main

gobl's People

Contributors

burz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.