Skip to content

Action Space Meaning #88

@zsunberg

Description

@zsunberg

If I use

ReinforcementLearningBase.get_actions(env::MyEnv) = [-1, 1]

the DQN example will throw an out of bounds error. I think this is because of the -1 action. Is this the intended behavior? Do actions need to be natural numbers, or can they be numbers that have physical meaning for the problem?

Complete code to reproduce the error: https://gist.github.com/zsunberg/a6fdebed95c518ba4e06e1d5d782a30a

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