See if yield positions_to_evaluate can be useful when writing ask-and-tell
#1718
MichaelClerx
announced in
Announcements
Replies: 3 comments
|
See also @martinjrobins 's cool work on NUTS |
0 replies
|
I found this actually made the code easier to read, because you don't need to break up the algorithm across an ask/tell divide. Main problem with this is that Python's support for this is changing rapidly, the yield syntax for co-routines is deprecated and will be removed from 3.10 onward. And it is not supported by python v2 |
0 replies
|
Possibly worth revisiting this at some point, but have turned it into a discussion rather than a pressing issue for now! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
See https://pythontips.com/2013/09/29/the-python-yield-keyword-explained/
Might be useful for some algorithms that are hard to break up, or might just make it harder to read :D
All reactions