Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Recommendation Order for BotorchRecommender #370

Merged
merged 5 commits into from
Sep 7, 2024

Conversation

Scienfitz
Copy link
Collaborator

@Scienfitz Scienfitz commented Sep 5, 2024

Fixes #353

Unintended reordering of discrete search space parts in BotorchRecommender was caused during pd.merging by the searchspace being on the left, however it should be on the right and the merge is safest done with how='left' while having the numerical points returned by botorch on the left -> the resulting rows will follow their order.

A test has been written, perhaps though a little too complicated but anyhow. We can construct a searchspace/target construct where it would be expected that the order of the searchspace is strongly broken when getting recommendations (although I havent been able to create one that is exactly anti-ordered). In the faulty variant the recommendation order would still be monotonically increasing like in the searchspace, while the "correct" order is roughly anti-ordered, or strictly speaking not monotonically increasing

@Scienfitz Scienfitz added the bug Something isn't working label Sep 5, 2024
@Scienfitz Scienfitz self-assigned this Sep 5, 2024
@Scienfitz
Copy link
Collaborator Author

@AVHopp @AdrianSosic a commit for redesigning the hybrid recommendation merge is now up

CHANGELOG.md Outdated Show resolved Hide resolved
baybe/recommenders/pure/bayesian/botorch.py Outdated Show resolved Hide resolved
@Scienfitz Scienfitz force-pushed the fix/recommendation_order branch from 8cfdb5a to b72bafb Compare September 6, 2024 14:44
@Scienfitz Scienfitz force-pushed the fix/recommendation_order branch from b72bafb to d042e0e Compare September 6, 2024 15:21
@Scienfitz Scienfitz force-pushed the fix/recommendation_order branch from 14dd568 to 81a6159 Compare September 7, 2024 16:48
@Scienfitz Scienfitz merged commit db20318 into main Sep 7, 2024
10 of 11 checks passed
@Scienfitz Scienfitz deleted the fix/recommendation_order branch September 7, 2024 17:11
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.

Merge order affects recommendation order
3 participants