Skip to content

Dist shift

MiniGrid's DistShift environment - two fixed layouts to test distribution shift.

See the environment class in this module for the task, layout and reward/termination details.

Bases: Environment

Navix-DistShift1-v0 / Navix-DistShift2-v0. A small room with a fixed strip of Lava between the player (top-left) and the goal (top-right). The two ids differ only in where the lava's far edge sits (split_lava), so a policy that overfits the first layout fails on the second - the environment exists to test distribution shift. Nothing is randomised.

Attributes:

Name Type Description
split_lava bool

False -> the compact DistShift1 layout; True -> the DistShift2 layout with the lava strip reaching further down.