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:
position_set (
Sequence
[Sequence
[float
]]) – sets of only possible values for x in each dimension.bounds (
Optional
[ndarray
[Any
,dtype
[Union
[float64
,int64
]]]] (default:None
)) – optional sequence of (min, max) bounds for values to propose in each dimension.repr_attributes (
tuple
[str
,...
] (default:()
)) – tuple of attribute names to include in the move’s representation.kwargs (Any) –
Methods
Instantiate a Move.
Generate a new proposed vector x.
Set bounds for the move.
Methods
- ParallelSetStep.__init__(*, position_set, bounds=None, repr_attributes=(), **kwargs)[source]
Instantiate a Move.
- Parameters:
position_set (
Sequence
[Sequence
[float
]]) – sets of only possible values for x in each dimension.bounds (
Optional
[ndarray
[Any
,dtype
[Union
[float64
,int64
]]]] (default:None
)) – optional sequence of (min, max) bounds for values to propose in each dimension.repr_attributes (
tuple
[str
,...
] (default:()
)) – tuple of attribute names to include in the move’s representation.kwargs (Any) –
- ParallelSetStep.get_proposal(x, state)
Generate a new proposed vector x.