OpenAIGym.jl icon indicating copy to clipboard operation
OpenAIGym.jl copied to clipboard

Episode iterator

Open tbreloff opened this issue 8 years ago • 0 comments

Something like:

type Episode
    steps_remaining::Int
end
# iteration methods... decrement steps_remaining and get the state

env = Env(....)
for state in Episode(env, maxsteps = 100)
    # pick an action
    act(env, action)
end

note: Env should store the next action to apply so it can be applied (by calling step) in the iterator

tbreloff avatar Apr 30 '16 02:04 tbreloff