boax.core.samplers module#

Implements random samplers.

Sampler Types#

class boax.core.samplers.Sampler(*args, **kwargs)#

A callable type for sampling functions.

A sampler takes a distribution as its input and samples from it.

Samplers#

I.I.D Samplers#

normal(key, sample_shape)

The i.i.d.

uniform(key, sample_shape)

The i.i.d.

Quasi-Random Samplers#

halton_normal(key, sample_shape)

The quasi-MC normal sampler based on halton sequences.

halton_uniform(key, sample_shape)

The quasi-MC uniform sampler based on halton sequences.