RocAlphaGo | led replication of DeepMind 's 2016 Nature publication | Machine Learning library
kandi X-RAY | RocAlphaGo Summary
kandi X-RAY | RocAlphaGo Summary
(Previously known just as "AlphaGo," renamed to clarify that we are not affiliated with DeepMind). This project is a student-led replication/reference implementation of DeepMind's 2016 Nature publication, "Mastering the game of Go with deep neural networks and tree search," details of which can be found on their website. This implementation uses Python and Keras - a decision to prioritize code clarity, at least in the early stages.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of RocAlphaGo
RocAlphaGo Key Features
RocAlphaGo Examples and Code Snippets
Community Discussions
Trending Discussions on RocAlphaGo
QUESTION
I'm trying to transplant RocAlphaGo to play Game of Amazons, and there are problems when trying to implement supervised policy trainer.
...ANSWER
Answered 2018-Feb-19 at 11:24As Matias is saying in the comments, if you add
QUESTION
I am converting a python script to cython and optimizing it for more speed. Right now i have 2 versions, on my desktop V2 is twice as fast as V1 unfortunately on my laptop V1 is twice as fast as V2 and i am unable to find out why there is such a big difference.
Both computers use:
- Ubuntu 16.04
- Python 2.7.12
- Cython 0.25.2
- Numpy 1.12.1
Desktop:
- Intel® Core™ i3-4370 CPU @ 3.80GHz × 4 64bit. 16GB RAM
Laptop:
- Intel® Core™ i5-3210 CPU @ 2.5GHz × 2 64bit. 8GB RAM
V1 - you can find the full code here. the only changes made are renaming go.py
, preprocessing.py
to go.pyx
, preprocessing.pyx
and using
import pyximport; pyximport.install()
to compile them. you can run test.py
. This version is using a 2d numpy array board
to store data in go.pyx
and list comprehension in the get_board
function in preprocessing.pyx
to process data. during the test no function is called from go.py
only the numpy array board
is used
V2 - you can find the full code here. quite some stuff has changed, below you can find a list with everything affecting this test case. Be aware, all function and variable declarations have to be in go.pxd
. you can run test.py
using this command: python test.py build_ext --inplace
the 2d numpy array is replaced by:
ANSWER
Answered 2017-Mar-20 at 21:07They are two different machines and behave differently. There's a reason why processor reviews use large benchmark suites. It could be said that the desktop CPU performs better on average, but execution times between two small but non-trivial pieces of codes does not 'have' to favor the desktop CPU. And differences execution times definitely do not have to follow any linear relationship. The performance is always dependant on a huge amount of factors. Possible explanations include but are not limited to the smaller L1 and L2 caches on the desktop and the change in vector instruction sets from AVX to AVX2 between the Ivy Bridge laptop and the Haswell desktop.
Generally it's a good idea to concentrate on using good algorithms and to identify and remove bottlenecks when optimizing performance. Trying to stare at benchmarks between different machines will probably only cause a headache.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install RocAlphaGo
You can use RocAlphaGo like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page