stripe / rainier

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

Warn about `latent` inside a `Vec.map` #477

Open avibryant opened 4 years ago

avibryant commented 4 years ago

The semantics of that can be unclear: was the intent to create a separate latent variable per row in the Vec, or (as will more likely occur) a single one that gets used in the entire vec?

avibryant commented 4 years ago

Should also warn when doing this inside a generator.