GithubHelp home page GithubHelp logo

marmelab / connect-four-tensorflow Goto Github PK

View Code? Open in Web Editor NEW
6.0 14.0 6.0 1 MB

Connect four solver using neural networks and tensorflow

Makefile 1.82% Python 98.18%
agile-integration tensor-flow

connect-four-tensorflow's Issues

Error! :(

I tried to run the example but I obtain this error:

root@f7776e04c7ef:/home/awari-deep/connect-four-tensorflow-master# python train.py --p1 minimax --p2 neural_network --iterations 200000 --randomness 0.1
Traceback (most recent call last):
File "train.py", line 8, in
import ai.factory
File "/home/awari-deep/connect-four-tensorflow-master/ai/factory.py", line 2, in
from neural_network.neural_network import NeuralNetwork
File "/home/awari-deep/connect-four-tensorflow-master/ai/neural_network/neural_network.py", line 24, in
x = tf.reshape(tf.concat(0,[x_p1, x_p2, x_empty]), [1, n_input])
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/array_ops.py", line 1122, in concat
tensor_shape.scalar())
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_shape.py", line 848, in assert_is_compatible_with
raise ValueError("Shapes %s and %s are incompatible" % (self, other))
ValueError: Shapes (3, 4, 4) and () are incompatible

Makefile install

As stated in #1 and #2

Add install target in Makefile, using docker.
Hook tests with Travis

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.