Skip to content

Conversation

@ltiao
Copy link
Contributor

@ltiao ltiao commented Nov 25, 2025

Summary:
This change updates DataLoaderConfig.statuses_to_fit to use STATUSES_EXPECTING_DATA plus TrialStatus.CANDIDATE instead of NON_ABANDONED_STATUSES. This is a semantic narrowing: instead of including all trial statuses except ABANDONED (which includes CANDIDATE, STAGED, FAILED, STALE, etc.), it now only includes trials that are expected to have reliable data (RUNNING, COMPLETED, EARLY_STOPPED) plus CANDIDATE explicitly.

Changes:

  • Changes implementation from NON_ABANDONED_STATUSES to {*STATUSES_EXPECTING_DATA, TrialStatus.CANDIDATE}
  • Updates docstrings in both statuses_to_fit and statuses_to_fit_map_metric to accurately reflect the new behavior, explicitly listing the statuses: RUNNING, COMPLETED, EARLY_STOPPED, plus CANDIDATE

Differential Revision: D83514647

Summary:
This change updates `DataLoaderConfig.statuses_to_fit` to use `STATUSES_EXPECTING_DATA` plus `TrialStatus.CANDIDATE` instead of `NON_ABANDONED_STATUSES`. This is a semantic narrowing: instead of including all trial statuses except `ABANDONED` (which includes `CANDIDATE`, `STAGED`, `FAILED`, `STALE`, etc.), it now only includes trials that are expected to have reliable data (`RUNNING`, `COMPLETED`, `EARLY_STOPPED`) plus `CANDIDATE` explicitly.

**Changes:**
- Changes implementation from `NON_ABANDONED_STATUSES` to `{*STATUSES_EXPECTING_DATA, TrialStatus.CANDIDATE}`
- Updates docstrings in both `statuses_to_fit` and `statuses_to_fit_map_metric` to accurately reflect the new behavior, explicitly listing the statuses: `RUNNING`, `COMPLETED`, `EARLY_STOPPED`, plus `CANDIDATE`

Differential Revision: D83514647
@meta-codesync
Copy link

meta-codesync bot commented Nov 25, 2025

@ltiao has exported this pull request. If you are a Meta employee, you can view the originating Diff in D83514647.

@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant