Rainier

Rainier

  • Docs
  • GitHub

›API Reference

Overview

  • Introduction to Rainier
  • Priors and Random Variables
  • Likelihoods and Observations
  • Vectors and Variables
  • Posteriors and Predictions

Installation

  • Getting Rainier
  • Using Jupyter
  • Roadmap
  • Modules

API Reference

  • Distributions
  • Model and Trace
  • Generator
  • Real
  • Vec
  • Samplers

Implementation

  • Bryant (2020)

Real

Real is found in com.stripe.rainier.compute.

Instance methods

Arithmetic: +, -, *, /, pow(exponent: Real)

Unary: -, abs, exp, log, logit, logistic

Comparison: min, max

Trigonometry: sin, cos, tan, asin, acos, atan, sinh, cosh, tanh

Object methods

Construct with Real(a) for any numeric value a.

Constants: zero, one, two, negOne, Pi, infinity, negInfinity

Control flow:

  • eq(left: Real, right: Real, ifTrue: Real, ifFalse: Real): Real
  • lt(left: Real, right: Real, ifTrue: Real, ifFalse: Real): Real
  • gt(left: Real, right: Real, ifTrue: Real, ifFalse: Real): Real
  • lte(left: Real, right: Real, ifTrue: Real, ifFalse: Real): Real
  • gte(left: Real, right: Real, ifTrue: Real, ifFalse: Real): Real

Summation:

  • sum(seq: Iterable[Real]): Real
  • logSumExp(seq: Iterable[Real]): Real
← GeneratorVec →
  • Instance methods
  • Object methods
Rainier
Docs
OverviewPaper
Community
Chat on GitterGitHub