Repository navigation
Workaround for computing dominated configurations - #966
AdrianSosic wants to merge 7 commits into
Conversation
cbe7b30 to
220a51a
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Incomplete target rows are not reliably excluded before Pareto filtering, allowing NaNs or zero-factor transformations to incorrectly eliminate valid configurations.
1 open issue
What changed in this PR
This PR adds a workaround for missing-target handling in BayBE’s non-dominated configuration detection, addressing #964 while awaiting an upstream BoTorch fix.
Changes:
- Masks configurations containing NaNs in transformed target values as dominated.
- Adds regression tests with incomplete configurations before and after a complete point.
- Documents the intended behavior in the changelog.
| File | Description |
|---|---|
| tests/test_is_non_dominated.py | Adds regression cases for missing target values. |
| CHANGELOG.md | Records the missing-target handling fix. |
| baybe/objectives/base.py | Adds a NaN mask after dominance computation. |
Review effort: Balanced
Incomplete outcome rows can cause BoTorch's loop-based Pareto check to mark complete points as dominated. Exclude them before the call so they cannot affect the valid front, then scatter the results back to the original rows.
There was a problem hiding this comment.
This PR makes one particular choice about treating the NaN's - I am 100% fine with it. But since it has not been discussed anywhere else I just want to point out the other - imo also perfectly valid - choice: If one or more targets are NaN, the point is simply judged by its remaining content (available targets)
pragmatically this could simply be achieved by replacing NaN's of targets with -inf (after transformation and orientation, especially easy now after the trafo NaN fixes)
Example
I have 2 targets and 3 measurements: (NaN,100), (2,12) and (32,11). While I cannot say if the first point is dominated or not, I can clearly acknowledge that it it likely to be an interesting point. Saying its dominated doest seem warranted given the value of the 2nd target - but that is what the current implementation would do. A human user would also typically look at 2D plots to identify interesting points - in such a plot if targets are chosen that had measurements present partial points would not disappear but be there and up for consideration and visual Pareto fron inspection. This interpretation goes more towards choosing a different fi than the PR currently does.
So all im saying is: imo it doesnt seem there is any obvious canonical choice, both are valid, just making sure this decision here taken is concious and considered the alternative.
Your take?
AVHopp
left a comment
There was a problem hiding this comment.
Silently changing custom transformations is not acceptable.
The logic of custom transformations is fully owned by the user
AVHopp
left a comment
There was a problem hiding this comment.
GIven that my point on changing user defined transformations has been resolved, here is my approval

Fixes #964 using workaround until meta-pytorch/botorch#3565 has been released.
While fixing, it was also noticed that certain transformations do not properly handle edge cases. The corresponding fixes and tests are added as well.