elfi-dev / elfi

ELFI - Engine for Likelihood-Free Inference
http://elfi.readthedocs.io
BSD 3-Clause "New" or "Revised" License
267 stars 60 forks source link

Unreliable simulations wrapper #484

Open uremes opened 5 months ago

uremes commented 5 months ago

Summary:

This update adds a helper function that handles errors or limits simulation time as demonstrate here. This could be used when the user has an unstable simulator such as mentioned in #433 or when we know that valid simulations should complete within certain time.

Please make sure

If your contribution adds, removes or somehow changes the functional behavior of the package, please check that

and the proposed changes pass all unit tests (check step 6 of CONTRIBUTING.rst for details)

Copyright and Licensing

Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: