-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
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
Allow more flexible definition of which trial statuses to fit. #2432
Conversation
This pull request was exported from Phabricator. Differential Revision: D56634321 |
…ook#2432) Summary: Changes `observations_from_data` and `observations_from_map_data` signatures, replacing arg `fit_abandoned: bool` -> `statuses_to_fit` and `statuses_to_fit_map_metric` which are both `Optional[List[TrialStatus]]`. In `observations_from_data`, these default to `None` in which case `{TrialStatus.COMPLETED}` is used for any MapMetrics, else `NON_ABANDONED_STATUSES`, i.e., all trial statuses except abandoned. In `observations_from_map_data`, `NON_ABANDONED_STATUSES` are the default for all metrics. NOTE: As of this diff, any rows of `Data.df` containing `metric_names` that don't exist on `experiment` will be filtered out ([pointer](https://www.internalfb.com/diff/D56634321?permalink=330145676765780)). Reviewed By: saitcakmak Differential Revision: D56634321
8e26abd
to
760034a
Compare
This pull request was exported from Phabricator. Differential Revision: D56634321 |
…ook#2432) Summary: Changes `observations_from_data` and `observations_from_map_data` signatures, replacing arg `fit_abandoned: bool` -> `statuses_to_fit` and `statuses_to_fit_map_metric` which are both `Optional[List[TrialStatus]]`. In `observations_from_data`, these default to `None` in which case `{TrialStatus.COMPLETED}` is used for any MapMetrics, else `NON_ABANDONED_STATUSES`, i.e., all trial statuses except abandoned. In `observations_from_map_data`, `NON_ABANDONED_STATUSES` are the default for all metrics. NOTE: As of this diff, any rows of `Data.df` containing `metric_names` that don't exist on `experiment` will be filtered out ([pointer](https://www.internalfb.com/diff/D56634321?permalink=330145676765780)). Reviewed By: saitcakmak Differential Revision: D56634321
760034a
to
f2b1dda
Compare
This pull request was exported from Phabricator. Differential Revision: D56634321 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2432 +/- ##
=======================================
Coverage 95.30% 95.30%
=======================================
Files 494 494
Lines 47920 47990 +70
=======================================
+ Hits 45670 45739 +69
- Misses 2250 2251 +1 ☔ View full report in Codecov by Sentry. |
…ook#2432) Summary: Changes `observations_from_data` and `observations_from_map_data` signatures, replacing arg `fit_abandoned: bool` -> `statuses_to_fit` and `statuses_to_fit_map_metric` which are both `Optional[List[TrialStatus]]`. In `observations_from_data`, these default to `None` in which case `{TrialStatus.COMPLETED}` is used for any MapMetrics, else `NON_ABANDONED_STATUSES`, i.e., all trial statuses except abandoned. In `observations_from_map_data`, `NON_ABANDONED_STATUSES` are the default for all metrics. NOTE: As of this diff, any rows of `Data.df` containing `metric_names` that don't exist on `experiment` will be filtered out ([pointer](https://www.internalfb.com/diff/D56634321?permalink=330145676765780)). Reviewed By: saitcakmak Differential Revision: D56634321
f2b1dda
to
4dcfd84
Compare
This pull request was exported from Phabricator. Differential Revision: D56634321 |
…ook#2432) Summary: Changes `observations_from_data` and `observations_from_map_data` signatures, replacing arg `fit_abandoned: bool` -> `statuses_to_fit` and `statuses_to_fit_map_metric` which are both `Optional[List[TrialStatus]]`. In `observations_from_data`, these default to `None` in which case `{TrialStatus.COMPLETED}` is used for any MapMetrics, else `NON_ABANDONED_STATUSES`, i.e., all trial statuses except abandoned. In `observations_from_map_data`, `NON_ABANDONED_STATUSES` are the default for all metrics. NOTE: As of this diff, any rows of `Data.df` containing `metric_names` that don't exist on `experiment` will be filtered out ([pointer](https://www.internalfb.com/diff/D56634321?permalink=330145676765780)). Reviewed By: saitcakmak Differential Revision: D56634321
4dcfd84
to
18b0406
Compare
This pull request was exported from Phabricator. Differential Revision: D56634321 |
…sponding experiments (facebook#2422) Summary: In D56634321, observations_from_dataframe fails if there are metric_names Data.df that don't also exist on the experiment. This adjusts tests so that they avoid this issue. Reviewed By: saitcakmak Differential Revision: D56850033
Summary: `Keys.PAIRWISE_PREFERENCE_QUERY` or `str(Keys.PAIRWISE_PREFERENCE_QUERY)` is commonly used when a string is expected, whereas I'm suspecting the intention is `Keys.PAIRWISE_PREFERENCE_QUERY.value`. This is causing issues in D56634321 which (for now) fails if any metrics in Data.df are not present on experiment when calling observations_from_dataframe. Reviewed By: Balandat Differential Revision: D56850035
…ook#2432) Summary: Changes `observations_from_data` and `observations_from_map_data` signatures, replacing arg `fit_abandoned: bool` -> `statuses_to_fit` and `statuses_to_fit_map_metric` which are both `Optional[List[TrialStatus]]`. In `observations_from_data`, these default to `None` in which case `{TrialStatus.COMPLETED}` is used for any MapMetrics, else `NON_ABANDONED_STATUSES`, i.e., all trial statuses except abandoned. In `observations_from_map_data`, `NON_ABANDONED_STATUSES` are the default for all metrics. NOTE: As of this diff, any rows of `Data.df` containing `metric_names` that don't exist on `experiment` will be filtered out ([pointer](https://www.internalfb.com/diff/D56634321?permalink=330145676765780)). Reviewed By: saitcakmak Differential Revision: D56634321
18b0406
to
8353ed4
Compare
This pull request was exported from Phabricator. Differential Revision: D56634321 |
This pull request has been merged in 2d8fa34. |
Summary:
Changes
observations_from_data
andobservations_from_map_data
signatures, replacing argfit_abandoned: bool
->statuses_to_fit
andstatuses_to_fit_map_metric
which are bothOptional[List[TrialStatus]]
. Inobservations_from_data
, these default toNone
in which case{TrialStatus.COMPLETED}
is used for any MapMetrics, elseNON_ABANDONED_STATUSES
, i.e., all trial statuses except abandoned. Inobservations_from_map_data
,NON_ABANDONED_STATUSES
are the default for all metrics.NOTE: As of this diff, any rows of
Data.df
containingmetric_names
that don't exist onexperiment
will be filtered out (pointer).Reviewed By: saitcakmak
Differential Revision: D56634321