Skip to content

Instantly share code, notes, and snippets.

View Svalorzen's full-sized avatar

Eugenio Bargiacchi Svalorzen

  • Vrije Universiteit Brussel
  • Brussels
View GitHub Profile
$ ./install.py --clang-completer
Searching Python 2.7 libraries...
Found Python library: /usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so
Found Python headers folder: /usr/include/python2.7
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
@Svalorzen
Svalorzen / solution.py
Created April 29, 2016 19:43
AI Gym CartPole solution
import gym
# In order to run this script you must download and compile
# the following library: https://github.com/Svalorzen/AI-Toolbox
# Building it will create an MDP.so file which you can then
# include here.
import MDP
# Number of distretized pieces for each observation component
steps = 4;