Skip to content

const left should be 0, not -1 in inkling #5

@journeyman-msft

Description

@journeyman-msft

def action(brain_action):
""" Convert the action from the AI Engine to a format expected by the
CartPole model.
"""
return 1 if brain_action['command'] > 0 else 0

This is what allows it to work where the sim still accepts <0, 1>. Do we want to be different than openAI gym's version?

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