stripe / rainier

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

Vectorized parameters #435

Closed avibryant closed 4 years ago

avibryant commented 4 years ago

The interface I'm imagining is something like

val vec: Fn[Int,Real] = Fn.fill(3){Normal(0,1).param}
avibryant commented 4 years ago

This is satisfied by https://github.com/stripe/rainier/pull/448. There's more performance optimization possible, but this captures the API/semantics in a way that leaves those possibilities open.