josiann.parallel.moves.discrete.ParallelSetStep

class josiann.parallel.moves.discrete.ParallelSetStep(*, position_set, bounds=None, repr_attributes=(), **kwargs)[source]

Step within a fixed set of possible values for x. For each dimension, the position immediately before or after x will be chosen at random when stepping.

Instantiate a Move.

Parameters:

Methods

ParallelSetStep.__init__

Instantiate a Move.

ParallelSetStep.get_proposal

Generate a new proposed vector x.

ParallelSetStep.set_bounds

Set bounds for the move.

Methods

ParallelSetStep.__init__(*, position_set, bounds=None, repr_attributes=(), **kwargs)[source]

Instantiate a Move.

Parameters:
ParallelSetStep.get_proposal(x, state)

Generate a new proposed vector x.

Parameters:
Return type:

ndarray[tuple[int, ...], dtype[TypeVar(DT_ARR, bound= float64 | int64)]]

Returns:

New proposed vector x of shape (ndim,).

ParallelSetStep.set_bounds(bounds)

Set bounds for the move.

Parameters:

bounds (tuple[float, float] | Sequence[tuple[float, float]] | None) – sequence of (min, max) bounds for values to propose in each dimension.

Return type:

None