We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
reset
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 rotation
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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:The text was updated successfully, but these errors were encountered: