LatinHypercube

class LatinHypercube[source]

Bases: AbstractOneShotSampler

Sampler using Latin Hypercube Sampling (LHS).

generate(N, d, key)[source]

Propose N points within the unit hypercube.

Parameters:
Return type:

Array

init(eval_fn, d, key, options)

Initialize the sampler state and perform the first evaluations.

Return type:

SamplerState

step(eval_fn, d, state, key, options)

Perform one iteration of the sampling algorithm.

Return type:

SamplerState

terminate(state, target_N)

Determine whether the sampling loop should stop.

Return type:

bool