Skip to content

Seed OCaml random state from Python #38

@pkel

Description

@pkel

For reproducible evaluations it would be great if we can set the RL-engine's (OCaml) random state from the Python API.

# Option 1
env = gym.make("cpr_gym:cpr-v0", seed=42)
# Option 2
env.reset(seed=42)
# Option 3
env.set_random_state(42)

Option 3 is most versatile. We could call set_random_state from reset and make/__init__ already calls reset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions