Commit 71a3b7b
Migrate downstream consumers to multi-metric replay API
Summary:
The experiment replay system (`MapDataReplayMetric`, `MapDataReplayRunner`, `replay_experiment`) is hardcoded for single-objective optimization, blocking multi-objective early stopping. This diff series extracts shared state into a `MapDataReplayState` coordinator.
This diff (3/3) migrates all downstream consumers of `replay_experiment` and `estimate_hypothetical_early_stopping_savings` from the deprecated `metric=` (singular) kwarg to the new `metrics=` (list) API introduced in D98741816, and removes the backward-compat shim from `experiment_replay.py`.
Consumers updated:
- `automl/internal/ax/ax_sweep/ax_sweep_orchestrator.py`
- `ax/analysis/healthcheck/early_stopping_healthcheck.py`
- `fblearner/flow/projects/ae/ess_replay/utils.py`
Differential Revision: D987418141 parent 546a28b commit 71a3b7b
2 files changed
Lines changed: 5 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
| |||
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
76 | | - | |
77 | 74 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 75 | | |
91 | 76 | | |
92 | 77 | | |
| |||
195 | 180 | | |
196 | 181 | | |
197 | 182 | | |
198 | | - | |
| 183 | + | |
199 | 184 | | |
200 | | - | |
201 | | - | |
202 | 185 | | |
203 | 186 | | |
204 | 187 | | |
| |||
211 | 194 | | |
212 | 195 | | |
213 | 196 | | |
214 | | - | |
215 | 197 | | |
216 | 198 | | |
217 | 199 | | |
| |||
224 | 206 | | |
225 | 207 | | |
226 | 208 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | 209 | | |
240 | 210 | | |
241 | 211 | | |
| |||
0 commit comments