Skip to content

Workaround for computing dominated configurations - #966

Open
AdrianSosic wants to merge 7 commits into
patch/0.15.3from
hotfix/dominated_missing
Open

AdrianSosic wants to merge 7 commits into
patch/0.15.3from
hotfix/dominated_missing

Conversation

@AdrianSosic

@AdrianSosic AdrianSosic commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

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.

@AdrianSosic AdrianSosic self-assigned this Nov 20, 2026
@AdrianSosic AdrianSosic added the bug Something isn't working label Nov 20, 2026
@CLAassistant

CLAassistant commented Nov 20, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@AdrianSosic
AdrianSosic force-pushed the hotfix/dominated_missing branch from cbe7b30 to 220a51a Compare November 20, 2026 11:13
@AdrianSosic
AdrianSosic marked this pull request as ready for review November 20, 2026 11:14
Copilot AI balanced review requested due to automatic review settings November 20, 2026 11:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread baybe/objectives/base.py Resolved
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.
@AdrianSosic
AdrianSosic marked this pull request as draft November 20, 2026 11:47
@AdrianSosic
AdrianSosic marked this pull request as ready for review November 20, 2026 12:03
Comment thread CHANGELOG.md

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Comment thread baybe/transformations/basic.py Resolved
Comment thread baybe/transformations/basic.py Resolved
Comment thread baybe/objectives/base.py Resolved
Comment thread baybe/objectives/base.py Resolved

@AVHopp AVHopp left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silently changing custom transformations is not acceptable.

Comment thread baybe/transformations/basic.py Resolved

@AVHopp AVHopp left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GIven that my point on changing user defined transformations has been resolved, here is my approval

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

identify_non_dominated_configurations marks configurations with missing target values as non-dominated

5 participants