Skip to content

1.1.0

Compare
Choose a tag to compare
@rmnldwg rmnldwg released this 20 Mar 17:19
· 25 commits to main since this release
6559f11

What's New

With this feature update, it becomes possible to speed up repeated risk predictions by providing it with precomputed state distributions. These state distributions are the most expensive part of most models.

Features

  • (utils) Add safe_set_params() function.
    This checks whether the params are a dict, list, or None and handles
    them accordingly. Just a convencience method that helped refactor some methods.
  • Allow to pass state distributions to posterior_state_dist() and risk() methds. Fixes #80.
    With this, one can use precomputed state distributions to speed up
    computing the posterior or risk for multiple scenarios.

Refactor

  • Use safe_set_params() across models.

Testing

  • Add checks for midline risk. Related #80.
  • (mid) Fix wrong assumption in risk test.

Full Changelog: 1.0.0...1.1.0