Skip to content

Instantly share code, notes, and snippets.

View befelix's full-sized avatar

Felix Berkenkamp befelix

View GitHub Profile
@befelix
befelix / baseline_hopper.pyh
Last active July 27, 2017 16:22
Comparison
#!/usr/bin/env python
# noinspection PyUnresolvedReferences
import mujoco_py # Mujoco must come before other imports. https://openai.slack.com/archives/C1H6P3R7B/p1492828680631850
from mpi4py import MPI
from baselines.common import set_global_seeds
import os
import gym
import logging
from baselines import logger
from baselines.pposgd.mlp_policy import MlpPolicy
from tensorforce import Configuration
from tensorforce.agents import TRPOAgent
from tensorforce.core.networks import layered_network_builder
import numpy as np
network_config = [{"type": "dense", "size": 50, "activation": "relu"}]
states = dict(shape=(2,), type='float')
actions = dict(action1=dict(continuous=True),
backports.weakref 1.0rc1 <pip>
bleach 1.5.0 <pip>
certifi 2017.4.17 <pip>
chardet 3.0.4 <pip>
cycler 0.10.0 <pip>
decorator 4.0.11 <pip>
e 1.4.5 <pip>
entrypoints 0.2.3 <pip>
future 0.16.0 <pip>
GPy 1.7.7 <pip>
Using jemalloc.
Increasing per-process limit of core file size to infinity.
LogInit:Display: Running engine for game: MyProject
LogPlatformFile: Not using cached read wrapper
LogInit:Display: RandInit(1782704291) SRandInit(1782704294).
LogTaskGraph: Started task graph with 4 named threads and 7 total threads with 1 sets of task threads.
LogStats: Stats thread started at 0.023361
LogInit: Version: 4.12.5-0+UE4
LogInit: API Version: 0
LogInit: Net Version: 0