Skip to content
/ stanz Public

🥟 Stanz is a scala library for purely functional Bayesian analysis.

Notifications You must be signed in to change notification settings

sdual/stanz

Repository files navigation

stanz

Build Status

Stanz is a scala library for purely functional Bayesian analysis.

Example

import com.github.sdual.stanz.Stanz._
import com.github.sdual.stanz.algorithm.{MetropolisHastings, MetropolisHastingsImpl}
import com.github.sdual.stanz.monad.Distribution

val mh: MetropolisHastings = MetropolisHastingsImpl()
val r = new Random
val n = 100000

val ps: Distribution[(Double, Double)] = points(createTrainingData(), linear())

val sampled = mh.run(n, ps).sample(r)

param-a param-b

References

  1. Practical Probabilistic Programming with Monads
  2. FUNCTIONAL PEARLS Probabilistic Functional Programming in Haskell

About

🥟 Stanz is a scala library for purely functional Bayesian analysis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages