pub struct SelectorConfig {
pub window_size: usize,
pub cooling_period: u64,
pub min_samples_before_switch: u64,
}Expand description
Configuration for OnlineModelSelector.
Fields§
§window_size: usizeRolling window size passed to the underlying BaselineComparator.
Must be greater than zero.
cooling_period: u64Number of samples that must be recorded on the current best model before another switch is allowed.
min_samples_before_switch: u64Minimum number of samples a model must have before it can be selected as the best.
Trait Implementations§
Source§impl Clone for SelectorConfig
impl Clone for SelectorConfig
Source§fn clone(&self) -> SelectorConfig
fn clone(&self) -> SelectorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelectorConfig
impl Debug for SelectorConfig
Auto Trait Implementations§
impl Freeze for SelectorConfig
impl RefUnwindSafe for SelectorConfig
impl Send for SelectorConfig
impl Sync for SelectorConfig
impl Unpin for SelectorConfig
impl UnsafeUnpin for SelectorConfig
impl UnwindSafe for SelectorConfig
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