Skip to content

Instantly share code, notes, and snippets.

Install https://github.com/SimonRamstedt/ddpg

Run e.g. python run.py --outdir ../ddpg-results/experiment1 --env InvertedDoublePendulum-v1

Note: The performance graphs on the gym website look weird because DDPG is alternating training and test phases.

For more information see repo.

@rmst
rmst / .Xcompose
Last active April 13, 2018 17:32
# Find proper key names here:
# https://www.x.org/releases/X11R7.7/doc/libX11/i18n/compose/el_GR.UTF-8.html
<Multi_key> <A> <l> : "A" U0391 # GREEK CAPITAL LETTER ALPHA
<Multi_key> <a> <l> : "α" U03B1 # GREEK SMALL LETTER ALPHA
<Multi_key> <B> <e> : "B" U0392 # GREEK CAPITAL LETTER BETA
<Multi_key> <b> <e> : "β" U03B2 # GREEK SMALL LETTER BETA
<Multi_key> <G> <a> : "Γ" U0393 # GREEK CAPITAL LETTER GAMMA
<Multi_key> <g> <a> : "γ" U03B3 # GREEK SMALL LETTER GAMMA
<Multi_key> <D> <e> : "Δ" U0394 # GREEK CAPITAL LETTER DELTA
@rmst
rmst / gist:61a94c6a3d2704c3be593bbe67b1b1c2
Created August 15, 2018 07:27
Error running a Unity3D application with SDL_VIDEODRIVER=offscreen flag
[simonr@kepler3 downtown_intersection-linux]$ export SDL_VIDEODRIVER=offscreen
[simonr@kepler3 downtown_intersection-linux]$ export SDL_HINT_CUDA_DEVICE=0
[simonr@kepler3 downtown_intersection-linux]$ ./downtown_intersection-linux.x86_64
Set current directory to /store/home_poly/simonr/avenue/unity_assets/downtown_intersection-linux
Found path: /store/home_poly/simonr/avenue/unity_assets/downtown_intersection-linux/downtown_intersection-linux.x86_64
Mono path[0] = '/store/home_poly/simonr/avenue/unity_assets/downtown_intersection-linux/downtown_intersection-linux_Data/Managed'
Mono config path = '/store/home_poly/simonr/avenue/unity_assets/downtown_intersection-linux/downtown_intersection-linux_Data/MonoBleedingEdge/etc'
Preloaded 'ScreenSelector.so'
Unable to preload the following plugins:
ScreenSelector.so
@rmst
rmst / closures-vs-methods.py
Last active April 19, 2022 21:35
Python closures vs methods
from timeit import timeit
import inspect
def t():
for f in inspect.stack():
print(f.function)
t()
s = """
class Object: