boax.core.samplers.halton_uniform

Contents

boax.core.samplers.halton_uniform#

boax.core.samplers.halton_uniform(key, sample_shape)#

The quasi-MC uniform sampler based on halton sequences.

Example

>>> sampler = halton_uniform(key, (128,))
>>> samples = sampler(Uniform(0, 1))
Parameters:
  • key (Array) – The pseudo-random number genererator key.

  • sample_shape (Sequence[Union[int, Any]]) – The sample shape.

Return type:

Sampler[Uniform]

Returns:

The corresponding Sampler.