-
Notifications
You must be signed in to change notification settings - Fork 11
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
Restructure the BoTorch interface #23
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thomaswmorris, I think it's close to completion, however, needs some work. I added a few suggestions below.
Also, can the notebook with the Himmelblau test function be improved? Right now it does not uncover all 4 optimum values:
Maybe having a reliable random seed and an increased number of iterations can help?
from sirepo_bluesky.sirepo_ophyd import create_classes | ||
|
||
from bloptools.bo import BayesianOptimizationAgent | ||
from bloptools.experiments.shadow import tes | ||
|
||
|
||
@pytest.mark.shadow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are those markers used anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I sometimes use them to exclude sirepo tests, I can split up the tests into sirepo and non-sirepo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember the markers need to be declared in the pytest.ini
file at the top of the repo.
Example 1: https://github.com/NSLS-II/sirepo-bluesky/blob/main/pytest.ini.
Example 2: https://github.com/Synchrotron-Radiation-Workshop/SRW/blob/reorg/clients/python/pytest.ini
Co-authored-by: Max Rakitin <mrakitin@users.noreply.github.com>
Co-authored-by: Max Rakitin <mrakitin@users.noreply.github.com>
I added more iterations |
|
||
connection = SirepoBluesky("http://localhost:8000") | ||
|
||
data, schema = connection.auth("shadow", "I1Flcbdw") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this simulation exists in the database for Sirepo started with the action from the sirepo-bluesky repo. We can add it if needed. Was it converted from the HXV1JQ5c
SRW simulation (from this list) to the Shadow simulation?
Why not to use the existing TES Shadow simulation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it can be resolved in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've opened 2 issues to cover non-blocking requests raised during this PR review: @thomaswmorris, please address them when you have time. I am going to merge this PR. |
Restructure the BoTorch interface
I restructured and renamed a bunch of stuff, with the philosophy that: