-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add doc strings, separate out stop critera in its own file
- Loading branch information
Showing
5 changed files
with
70 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
# | ||
# This source code is licensed under the BSD-style license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
|
||
class StopCriteria: | ||
""" | ||
Stopping criteria for the dataset samplers. | ||
1) CYCLE_UNTIL_ALL_DATASETS_EXHAUSTED: Stop once the last unseen dataset is exhausted. | ||
All datasets are seen at least once. In certain cases, some datasets may be | ||
seen more than once when there are still non-exhausted datasets. | ||
2) ALL_DATASETS_EXHAUSTED: Stop once all have the datasets are exhausted. Each | ||
dataset is seen exactly once. No wraparound or restart will be performed. | ||
3) FIRST_DATASET_EXHAUSTED: Stop when the first dataset is exhausted. | ||
""" | ||
|
||
CYCLE_UNTIL_ALL_DATASETS_EXHAUSTED = "CYCLE_UNTIL_ALL_DATASETS_EXHAUSTED" | ||
ALL_DATASETS_EXHAUSTED = "ALL_DATASETS_EXHAUSTED" | ||
FIRST_DATASET_EXHAUSTED = "FIRST_DATASET_EXHAUSTED" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters