-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Add an option to apply data augmentation when sampling 10 × 10 Sokoban levels from the DeepMind Boxoban dataset.
More precisely, at reset, apply one of the 8 symmetries of the square uniformly at random to the loaded level. Here's an example implementation:
bits = random.bernoulli(key, shape=[3])
level = jnp.where(bits[0], level, level[::-1, :]) # vertical flip
level = jnp.where(bits[1], level, level[:, ::-1]) # horizontal flip
level = jnp.where(bits[2], level, jnp.rot90(level)) # 90-degree rotationReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed