Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

use should_shuffle instead of is_training to determine whether to ran… #4425

Merged

Conversation

juderoque
Copy link
Contributor

@juderoque juderoque commented Mar 16, 2022

…domly sample from worlds

Patch description
Addresses #3662 by using should_shuffle instead of is_training to determing whether to randomly sample between worlds or to use the round-robin world selection.

Testing steps
pytest tests/test_multiworld.py (test_with_ordered)

Other information
When should shuffle is False, multitask weights are effectively ignored. We warn the user if they choose a datatype that doesn't shuffle and also specify multitask weights.

@juderoque juderoque requested a review from skiingpacman March 16, 2022 19:35
@juderoque juderoque marked this pull request as ready for review March 16, 2022 19:53
Copy link
Contributor

@stephenroller stephenroller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, let's see what @skiingpacman says

@skiingpacman
Copy link
Contributor

LGTM. One question (more a clarification) what's being addressed by "added warning about using datatype that doesn't shuffle with multitask weights"? It's not clear to me what this is saying? That "weighting" of tasks isn't respected or something else?

@juderoque
Copy link
Contributor Author

LGTM. One question (more a clarification) what's being addressed by "added warning about using datatype that doesn't shuffle with multitask weights"? It's not clear to me what this is saying? That "weighting" of tasks isn't respected or something else?

Yep! warning that the weighing of tasks is not respected

@juderoque juderoque merged commit 573c76c into main Mar 17, 2022
@juderoque juderoque deleted the 3662-multiworld-behaves-nondeterministically-on-ordered branch March 17, 2022 18:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MultiWorld behaves nondeterministically on :ordered
4 participants