-
Notifications
You must be signed in to change notification settings - Fork 5
Updated Bayesian Optimization Workflow #14
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
Open
jaeminy00
wants to merge
32
commits into
mcgalcode:master
Choose a base branch
from
jaeminy00:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+976
−75
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
06d6ccf
added kwargs for jobflow library building
jaeminy00 3018d25
fixed typo
jaeminy00 4d7fb76
added entry_kwargs to the @job decorated setup_reaction_library as well
jaeminy00 9b849e8
Bayesian workflow jobs
jaeminy00 40c8982
added bayesian optimizer JobFlow flow file
jaeminy00 f80e728
Created jobs and flows folders, and separated job and flow files for …
jaeminy00 3e82226
Revise docstring for core jobflow jobs
jaeminy00 b4c7955
Refactor imports and enhance reaction library setup
jaeminy00 b6d9f39
Enhance docstring with example for create_simulation_flow
jaeminy00 9969eac
fixed kwargs not correctly being added due to wrong branching
jaeminy00 a4017c8
fixed typo
jaeminy00 aca9692
more kwargs error!!!
jaeminy00 8aa0d69
fixed KeyError issue arising from using floats instead of ints when s…
jaeminy00 e479e7a
fixed mongoDB max memory issue, now passes the path instead of the wh…
jaeminy00 843add8
fixed flows/bayesian.py as well
jaeminy00 10ca6bf
made changes to kwargs logic to make sure everything is passed down c…
jaeminy00 db00955
fixed a bug where json from 1 trial to another was not writing correctly
jaeminy00 575339e
deleted the weird json file
jaeminy00 9c4f68e
Change campaign_json to file path for next trial
jaeminy00 7db9951
cherry picked max's edits on precursor selection
jaeminy00 99488a8
accounting for when job walltime hits and need to re-launch on a new …
jaeminy00 8b07d00
Enable optimization of precursor amounts with ratios
jaeminy00 36955a6
fixed fireworks saving launcher files to wrong directories
7b24565
changes to make sure the correct job is picked up by fireworks; modified
e3e7120
jobflow job naming convention fixes
a1463e4
Fix Ray over-subscription deadlock on SLURM shared nodes
jaeminy00 cefba4e
changed default compress_freq to 500, instead of 1, for BO workflows …
jaeminy00 15bc4c3
changed default metastability cutoff from 0.1 to 0.03
jaeminy00 6cca609
Removed the Ray initialization
jaeminy00 b7237e1
Removed Ray Initialization line as it's not functional
jaeminy00 e06c6db
Merge remote-tracking branch 'refs/remotes/origin/master'
jaeminy00 74bcf32
test
jaeminy00 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| import os | ||
| import multiprocessing as mp | ||
| from typing import List | ||
|
|
||
| from rxn_network.reactions.reaction_set import ReactionSet | ||
|
|
||
| from ..core import HeatingSchedule | ||
|
|
@@ -6,11 +10,14 @@ | |
| from ..reactions import ReactionLibrary, ScoredReaction, ScoredReactionSet, score_rxns | ||
| from ..reactions.scorers import BasicScore, TammanScore | ||
|
|
||
| from typing import List | ||
| _scoring_globals = {} | ||
|
|
||
| import multiprocessing as mp | ||
|
|
||
| _scoring_globals = {} | ||
| def _pool_initializer(data: dict): | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, this is a lot better than the naked global declaration lol |
||
| """Populate worker-process globals (called by forkserver/spawn pool workers).""" | ||
| global _scoring_globals | ||
| _scoring_globals.update(data) | ||
|
|
||
|
|
||
| def fn(temp): | ||
| score_class = _scoring_globals.get('score_class') | ||
|
|
||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just out of interest: was that boundary hang thing a problem? Did you resolve it somehow by using this Thompson Sampling?
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 I need to do more testing on this; making precursor ratio as a discrete variable was a semi-temporary fix and I was planning on looking at it more, but after talking to KP she said it'd be okay to not touch precursor ratios at all for now.