Commit 733320e
Allow DiagnosticAnalysis with missing opt config metrics (#5159)
Summary:
Pull Request resolved: #5159
Filter DiagnosticAnalysis metrics to only those present in the adapter's optimization config, gracefully handling cases where the adapter cannot be extracted. This prevents errors when the experiment has metrics not included in the optimization configuration.
The commit adds a try/except block in DiagnosticAnalysis that uses extract_relevant_adapter to identify which metrics are actually in the optimization config, filtering out any that aren't. If the adapter can't be extracted, it silently continues with the original metric list.
Reviewed By: mgarrard
Differential Revision: D100103284
fbshipit-source-id: 60071ea87c708cc1b7725e3ccf97af990121e19a1 parent 482f129 commit 733320e
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
87 | 101 | | |
88 | 102 | | |
89 | 103 | | |
| |||
0 commit comments