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

Faster batch simulations in toad model #437

Closed uremes closed 1 year ago

uremes commented 1 year ago

Summary:

this update substitutes the sequential batch simulation in batch_toad with array operations and adds support for batches that have batch_size different parameter values. batch_toad and toad are also combined into toad, and summary calculation is broken into four nodes that represent summaries calculated at each lag = 1, 2, 4, 8. the update on summary calculation is cosmetic and was done with the lotka-volterra and arch examples in mind, ie to match how summaries are represented in those ones.

Examples:

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: