josiann.moves.sequential.RandomStep
- class josiann.moves.sequential.RandomStep(*, magnitude, bounds=None, repr_attributes=(), **kwargs)[source]
Simple random step within a radius of (-0.5 * magnitude) to (+0.5 * magnitude) around x.
Instantiate a Move.
- Parameters:
magnitude (
float) – size of the random step is (-0.5 * magnitude) to (+0.5 * magnitude)bounds (
Optional[ndarray[tuple[int,...],dtype[float64|int64]]] (default:None)) – optional sequence of (min, max) bounds for values to propose in each dimension.repr_attributes (
tuple[str,...] (default:())) – list of attribute names to include in the string representation of this Move.kwargs (Any)
Methods
Instantiate a Move.
Generate a new proposed vector x.
Set bounds for the move.
Methods
- RandomStep.__init__(*, magnitude, bounds=None, repr_attributes=(), **kwargs)[source]
Instantiate a Move.
- Parameters:
magnitude (
float) – size of the random step is (-0.5 * magnitude) to (+0.5 * magnitude)bounds (
Optional[ndarray[tuple[int,...],dtype[float64|int64]]] (default:None)) – optional sequence of (min, max) bounds for values to propose in each dimension.repr_attributes (
tuple[str,...] (default:())) – list of attribute names to include in the string representation of this Move.kwargs (Any)