1.2.0
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.
TheMidline
model now has aposterior_state_dist()
method, too. - (types) Base
Model
has state dist methods.
Bothstate_dist()
andposterior_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 therisk()
methods. - (types) Add
obs_dist
andmarginalize
.
Thetypes.Model
base abstract base class now also has the methods
obs_dist
andmarginalize
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