Commit eb264f1
Fix SearchSpaceAnalysis crash on non-numeric ordered choice parameters (facebook#4991)
Summary:
Pull Request resolved: facebook#4991
`search_space_boundary_proportions` assumed all ordered `ChoiceParameter` values
are numeric (`int | float`), but some expeirments have ordered string values (somehow?). When this happens, the SearchSpaceBoundary check breaks ([example](https://www.internalfb.com/ax/experiment/p_wyt_directional_v7_ax/experiment)).
This diff adds a check that all values are numeric before entering that branch,
so non-numeric ordered choice parameters are skipped like unordered ones.
Reviewed By: ItsMrLin
Differential Revision: D94979372
fbshipit-source-id: a31ffd54aa611c10146ec4805b88dc21a486d5721 parent a89122d commit eb264f1
File tree
2 files changed
+37
-1
lines changed- ax/analysis/healthcheck
- tests
2 files changed
+37
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
0 commit comments