hrpan / tetris_mcts Goto Github PK
View Code? Open in Web Editor NEWMCTS project for Tetris
MCTS project for Tetris
Hi!
Very nice project,
I'm trying to get it to run locally, and I think have installed everything (including pyTetris) as instructed but I cannot run the project.
The error I'm getting is:
/home/serdil/workspace/ypp/tetris_mcts/agents/cppmodule/.rendered.agent.cpp:12:9: fatal error: pyTetris.h: No such file or directory
#include<pyTetris.h>
^~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Also, I've changed the line in agent.mcts
to sys.path.append('/home/serdil/workspace/ypp/pyTetris/')
(where I've cloned the pyTetris repo) and also tried adding the line to the entrypoint (play.py) but I've had no luck so far.
And I don't know if it's related but, I cannot see a pyTetris.h in the pyTetris project as well, is it supposed to be generated automatically by pybind11? I've also tried changing the pyTetris.h includes to pyTetris.cpp but it still gives me the same kind of error (pyTetris.cpp: No such file or directory). Am I doing something wrong here?
(Btw, I can include pyTetris in the python shell after installing it)
Thanks for the help in advance!
flake8 testing of https://github.com/hrpan/tetris_mcts on Python 3.7.1
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
./train.py:101:37: F821 undefined name 'self'
values[_i] = ep_score - self.score[_i]
^
1 F821 undefined name 'self'
1
Hey, I literally wanted to try a combination of MCTS and TD learning on some retro games (inspiration from AlphaGo) and I stumbled upon your project. I'm excited to explore it and see if I can make a similar agent for different games. However, there seems to be an issue with caffe2 and PyTorch installation, as my Python version (3.8) does not seem to have the versions mentioned in the requirements.txt
I have tried installing it with Python 3.8, 3.6 and 3.5 but caffe2 just doesn't install (saying 0.8.1 is not available). Even the version which is available (caffe2 0.5.0a0.dev100) doesn't install due to some PyTorch issues. Could you please elaborate on what version of Python was used for this project? Also, did you have CUDA enabled for PyTorch (I have a CPU version ๐ )?
Thanks a lot for taking time to even read this stuff. I'd be very happy if I can just run your project on my PC.
Hey there,
I also use mcts to predict good actions. However in my case (multi player card game) it is very expensive to look ahead very far. For this reason I want to ask you if you know if there is a parallel mcts algorithm available?
I just found this one for CUDA written in C++ :
http://15418-final.github.io/parallelizedMCTS_web/
I would however like to have one in python.
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.