Skip to content

Releases: JiaYaobo/fenbux

fenbux v0.1.0 release! ! !

30 Mar 07:06
347bbbd
Compare
Choose a tag to compare

In this version, mainly

  • Add a bijector module, including Exp, Log, Scale, Tanh etc. bijectors, and
  • related functions transform, evaluate, ladj, ildj etc.

Usage:

Evaluate a bijector

import jax.numpy as jnp
from fenbux.bijector import Exp, evaluate

bij = Exp()
x = jnp.array([1., 2., 3.])

evaluate(bij, x)

Apply a bijector to a distribution

import jax.numpy as jnp
from fenbux.bijector import Exp, transform
from fenbux.univariate import Normal
from fenbux import logpdf

dist = Normal(0, 1)
bij = Exp()

log_normal = transform(dist, bij)

x = jnp.array([1., 2., 3.])
logpdf(log_normal, x)

fenbux v0.0.4 released!

25 Feb 03:12
8d47462
Compare
Choose a tag to compare

fenbux v0.0.4

  • Add more distributions: Cauchy, Dirichlet, Beta-Binomial ... #11, #10 ...
  • Modify docstrings
  • Modify performance #8
  • Add fenbux-plum-dispatch dependency #6