Skip to content

1.2.0

Compare
Choose a tag to compare
@rmnldwg rmnldwg released this 29 Mar 12:57
· 68 commits to main since this release
b7f453a

What's New

This feature update brings methods to the models that allow a more modular use of them. Otherwise, nothing spectacular.

Bug Fixes

  • (mid) obs_dist may return 3D array.

Documentation

  • Fix unknown version in title.
  • Add missing blank before list.
  • (mid) Add comment about midext marginalizing.

Features

  • (mid) Add posterior_state_dist() method.
    The Midline model now has a posterior_state_dist() method, too.
  • (types) Base Model has state dist methods.
    Both state_dist() and posterior_state_dist() have been added to the
    types.Model base class.
  • Add marginalize() method.
    With this new method, one can marginalize a (prior or posterior) state
    distribution over all states that match a provided involvement.
    It is used e.g. to refactor the code of the risk() methods.
  • (types) Add obs_dist and marginalize.
    The types.Model base abstract base class now also has the methods
    obs_dist and marginalize for better autocomplete support in editors.

Testing

  • Remove plain test risk.

Change

  • (types) Improve type hints for inv. pattern.
  • Rename "diagnose" to "diagnosis" when noun.
    When used as a noun, "diagnosis" is correct, not "diagnose".

Full diff: 1.1.0...1.2.0