pub struct RandomSampler { /* private fields */ }Expand description
The simplest possible Sampler: every parameter is drawn independently
and uniformly (or log-uniformly / categorically) from its distribution, with
no learning from prior trials. It is the right baseline to validate the
whole Trial/TrialContext/Study plumbing against, and the reference
every adaptive sampler is compared to.
Implementations§
Trait Implementations§
Source§impl Default for RandomSampler
impl Default for RandomSampler
Source§impl Sampler for RandomSampler
impl Sampler for RandomSampler
fn suggest( &mut self, _study_state: &StudyState, _trial: &Trial, _param_name: &str, distribution: &Distribution, ) -> Value
Auto Trait Implementations§
impl Freeze for RandomSampler
impl RefUnwindSafe for RandomSampler
impl Send for RandomSampler
impl Sync for RandomSampler
impl Unpin for RandomSampler
impl UnsafeUnpin for RandomSampler
impl UnwindSafe for RandomSampler
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