Skip to content
Gym environments in Julia
Branch: master
Clone or download
Latest commit cd02fa2 Mar 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets fix visualisation Mar 1, 2019
examples/CartPole DQN model Feb 12, 2019
src Update Gym.jl Mar 13, 2019
LICENSE
Manifest.toml pendulum env update Feb 10, 2019
Project.toml pendulum env update Feb 10, 2019
README.md Update README.md Mar 14, 2019

README.md

Gym.jl

Gym environments in Julia

Installation

julia> ] add https://github.com/FluxML/Gym.jl

Usage

env = CartPoleEnv()
ctx = Ctx(env)

display(ctx.s)

# using Blink # when not on Juno
# body!(Blink.Window(), ctx.s)

actions = rand(1:2, 1000)
i = 1
done = false
reset!(env)
while i <= length(actions) && !done
    global i, done
    a, b, done, d = step!(env, actions[i])
    render(env, ctx)
    i += 1
    # sleep(0.4) # to see an animation
end
You can’t perform that action at this time.