-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor callable lookup mechanism (#441)
This PR refactors the callable lookup mechanism in the simulation module, fixing one of the major limitations of the module and preparing it for multi-target simulation. In particular: * The position-based approach relying on the order of input arguments to the callable is replaced with a proper dataframe-based approach, similar to other user-facing functionality elsewhere. That is, the callable now expects a dataframe containing columns corresponding to the search space parameters and returns a dataframe containing columns corresponding to the targets of the objective. * A `arrays_to_dataframes` decorator utility has been added that allows to conveniently construct such callables from array-based ones * The `custom_analytical` example has been renamed to `custom_blackbox` and was rewritten from scratch, using the new approach and fixing the existing issues. * Redundant examples have been removed. * The `filter_df` function has been fixed such that it now correctly handles the edge case of an empty filter.
- Loading branch information
Showing
32 changed files
with
1,598 additions
and
1,850 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ | |
omit = | ||
baybe/utils/plotting.py | ||
baybe/utils/random.py | ||
baybe/utils/botorch_wrapper.py | ||
baybe/simulation/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.