Kautenja / gym-super-mario-bros

An OpenAI Gym interface to Super Mario Bros. & Super Mario Bros. 2 (Lost Levels) on The NES
Other
678 stars 133 forks source link

Allow random stages to sample from a subset #111

Closed roclark closed 2 years ago

roclark commented 2 years ago

Description

Random stage selection allows more diverse sampling and exploration for agents, though the wide variety of stages in Super Mario Bros. can be challenging for agents to learn. Specifying a subset of stages to randomly sample allows the user to hand-select similar levels for agents to have more diverse observations, while still being focused enough to learn the mechanics of the environments in question.

For example, several of the castle levels have identical layouts but feature slightly different hazards. Allowing the agent to learn on different castle environments can help it be more generic while still having a reasonable chance of completing the level.

Type of change

Please select all relevant options:

Checklist

Kautenja commented 2 years ago

Awesome feature and this code is super clean! Thanks :)

Kautenja commented 2 years ago

Released in version 7.4.0