josiann.parallel.moves.base.ParallelMove
- class josiann.parallel.moves.base.ParallelMove(*, bounds=None, repr_attributes=(), **kwargs)[source]
Base class for building moves that solve optimization problems in parallel.
Instantiate a Move.
- Parameters:
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:()
)) – 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
- ParallelMove.__init__(*, bounds=None, repr_attributes=(), **kwargs)
Instantiate a Move.
- Parameters:
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:()
)) – list of attribute names to include in the string representation of this Move.kwargs (Any) –
- ParallelMove.get_proposal(x, state)
Generate a new proposed vector x.