stripe / rainier

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

warn if someone creates a param() inside a Fn block #425

Closed avibryant closed 4 years ago

avibryant commented 4 years ago

One way to detect this is during observe to run the Fn twice and make sure that the parameters reachable from each result are the same.