-
Notifications
You must be signed in to change notification settings - Fork 26
ASK/TELL DEVELOP #1307
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
base: develop
Are you sure you want to change the base?
ASK/TELL DEVELOP #1307
Conversation
…ply send points first, then updates
…p_state when sending updates
…sk_updates takes two items from the queue. the next time around will hang. use "while qsize()" instead.
…to experimental/jlnav_plus_shuds_asktell
…_1d_asktell_gen test the RandSample class in persistent_sampling
…f points. cache an ask of aposmm, give out selections of that ask until all are given out, then ask aposmm for more
…array creation purposes. can probably be simplified
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1307 +/- ##
===========================================
+ Coverage 76.97% 77.46% +0.49%
===========================================
Files 77 80 +3
Lines 7812 8184 +372
Branches 1160 1223 +63
===========================================
+ Hits 6013 6340 +327
- Misses 1598 1623 +25
- Partials 201 221 +20 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
} | ||
|
||
my_APOSMM = APOSMM(gen_specs) | ||
my_APOSMM.setup() |
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.
Does this need to be separate to constructor?
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.
Perhaps you've seen already, but setup()
sets attributes that can't be pickled, but need to be done anyway. So I believe a separate generator.setup()
needs to exist.
But perhaps for outside-of-libE purposes, to save a line, this could resemble: my_APOSMM = APOSMM(gen_specs, setup=True)
.
… run; we needed to remove it temporarily from gen_specs right before that dict is serialized for the workers.
Currently this has two existing user functions refactored to ask/tell, and it is a breaking change for codes using those gens. I don't think this is what we want. So, for now, we could supply these as duplicates (keeping the original), or remove them. Alternative would be to refactor all appropriate gens to ask/tell, but that would hold this up, so I think it may be better to supply these two as a duplicate for now. Also, would it be better for these ask/tell gens (rand sample and gpCAM) to use AskTellGenRunner and not use the wrapper gen_f (given a breaking change anyway). Issues we need to address:
|
Sounds good. Maybe we could raise DeprecationWarnings?
I prefer the AskTellGenRunner myself (I did develop it), but if all the gens move to my runner, then what would you want to do with your wrapper? |
I think there is also some opportunity for inheritence with the gpCAM class. And gp_cam_simple is more complicated than gp_cam_asktell. So, if anything the latter would be the base class, and renamed to avoid confusion. See #1316 |
…iables_objectives
Asktell/variables objectives
…_removing_wrapper
Asktell/try removing wrapper
Asktell/various fixes
Consequences of removing the gen_f wrapper. When we bring up things like wanting to examine our model at the end, the answer is that it's orchestration and so should not be in a generator. The only place we have to do these things is inside a gen_f. |
…lize. avoiding gpcam because they still use ask/tell
persis_info: dict = {}, | ||
gen_specs: dict = {}, | ||
libE_info: dict = {}, | ||
**kwargs, |
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.
For libEnsemble arguments this is opaque when looking at this routine. Perhaps they should be written out as additional arguments. Then there's the question of whether you keep gen_specs as well.
See checklist in #1307 (review)