pub struct ControllerConfig {
pub window_ms: i64,
pub failure_rate_threshold: f32,
pub min_samples: usize,
pub downgrade_penalty: f32,
pub min_selectable_confidence: f32,
pub initial_confidence: f32,
}Expand description
Configuration for ConfidenceController.
Fields§
§window_ms: i64Rolling time window in milliseconds used to compute failure rate (default: 3 600 000 ms = 1 hour).
failure_rate_threshold: f32Failure-rate threshold in [0.0, 1.0] that triggers a downgrade step (default: 0.5).
min_samples: usizeMinimum number of outcomes inside the window before any downgrade decision is made (default: 3).
downgrade_penalty: f32Confidence amount subtracted per downgrade step, also used as the recovery boost per success (default: 0.15).
min_selectable_confidence: f32Assets with confidence strictly below this value are considered
non-selectable and require re-validation (default:
MIN_REPLAY_CONFIDENCE).
initial_confidence: f32Confidence assigned to assets that are not yet tracked (default: 1.0).
Trait Implementations§
Source§impl Clone for ControllerConfig
impl Clone for ControllerConfig
Source§fn clone(&self) -> ControllerConfig
fn clone(&self) -> ControllerConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ControllerConfig
impl Debug for ControllerConfig
Source§impl Default for ControllerConfig
impl Default for ControllerConfig
Source§impl<'de> Deserialize<'de> for ControllerConfig
impl<'de> Deserialize<'de> for ControllerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ControllerConfig
impl RefUnwindSafe for ControllerConfig
impl Send for ControllerConfig
impl Sync for ControllerConfig
impl Unpin for ControllerConfig
impl UnsafeUnpin for ControllerConfig
impl UnwindSafe for ControllerConfig
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