marmelab / connect-four-tensorflow Goto Github PK
View Code? Open in Web Editor NEWConnect four solver using neural networks and tensorflow
Connect four solver using neural networks and tensorflow
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.