stripe / rainier

Bayesian inference in Scala.
https://rainier.fit
Apache License 2.0
432 stars 51 forks source link

Introduce Model #407

Closed avibryant closed 4 years ago

avibryant commented 4 years ago

This PR introduces a Model object, with creation methods that parallel the old Events.observe. To support those methods, we also reintroduce the logic that used to be in ToLikelihood typeclasses, but simplified to be directly on Distribution; this makes it more straightforward to add more Distribution subtypes.