pub struct ParamShift {
pub model: ActionModel,
}Expand description
Changes one parameter of one gene by a small amount (GLEAM “parameter shift”).
The step is ±width · 10^(-3u) with u ~ U(0, 1): log-uniform between the whole range
and a thousandth of it, so small changes are as likely per decade as large ones (a
reconstruction of GLEAM’s ten change classes, which the guide does not spell out). Integer
parameters move by at least one; the result is clamped to the bounds.
Fields§
§model: ActionModelThe action model holding the parameter bounds.
Trait Implementations§
Source§impl Clone for ParamShift
impl Clone for ParamShift
Source§impl Debug for ParamShift
impl Debug for ParamShift
Source§impl PartialEq for ParamShift
impl PartialEq for ParamShift
impl StructuralPartialEq for ParamShift
Auto Trait Implementations§
impl Forget for ParamShift
impl Freeze for ParamShift
impl Move for ParamShift
impl RefUnwindSafe for ParamShift
impl Send for ParamShift
impl Sync for ParamShift
impl Unpin for ParamShift
impl UnsafeUnpin for ParamShift
impl UnwindSafe for ParamShift
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more