pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.66k stars 2k forks source link

Avoid repeated status polling in smc #7351

Closed aseyboldt closed 3 months ago

aseyboldt commented 3 months ago

Description

The smc progress indicator continually polls the status of the worker thread. This instead uses mutliprocessing.wait to make this more efficient.

Checklist

Type of change


📚 Documentation preview 📚: https://pymc--7351.org.readthedocs.build/en/7351/

fonnesbeck commented 3 months ago

Re-starting failed test. Not clear its related to the change.

aseyboldt commented 3 months ago

The failure was due to the change, good thing we have tests :-) Only the last finished chain was returned by the sampling function.