Skip to content
This repository was archived by the owner on May 21, 2022. It is now read-only.
This repository was archived by the owner on May 21, 2022. It is now read-only.

Episode iterator #2

@tbreloff

Description

@tbreloff

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions