statsim
v0.0.1
Published
StatSim — probabilistic programming, data analysis, and statistical computing (coming soon)
Maintainers
Readme
statsim
Meta-package for StatSim probabilistic programming and statistical computing.
Install
npm install statsimUsage
As a library
import { compile, compileAndRun, stoch } from 'statsim'
// Compile .sm model
const code = compile('y ~ Normal(0, 1)', { target: 'stoch' })
// Use stoch directly
const { Normal, sample } = stoch
const dist = new Normal(0, 1)
const samples = await sample(dist, 1000)As a CLI
# Compile .sm model to stoch
statsim compile model.sm
# Compile to different backend
statsim compile model.sm --target=pymc
statsim compile model.sm --target=stanWhat's included
This meta-package includes:
@statsim/compiler— compile .sm models to various backends@statsim/engine— execution engine for running modelsstoch— probabilistic programming runtime
