See if yield positions_to_evaluate can be useful when writing ask-and-tell
#1718
Replies: 3 comments
-
|
See also @martinjrobins 's cool work on NUTS |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
Possibly worth revisiting this at some point, but have turned it into a discussion rather than a pressing issue for now! |
Beta Was this translation helpful? Give feedback.
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
Beta Was this translation helpful? Give feedback.
All reactions