pub struct Monitor {
pub reverted: bool,
pub sessions: u32,
pub units: u32,
pub mean: f64,
pub ucb: Option<f64>,
pub labelled: u32,
pub ess: f64,
pub max_weight: f64,
pub truncated: u32,
}Expand description
The monitor’s reading of the learned policy against the fixed rule (module doc).
Fields§
§reverted: boolThe store went back to the fixed rule (sticky: select/summary.rs REVERTED).
sessions: u32Sessions and applies of the learned policy it read.
units: u32§mean: f64Per apply, the mean of (policy − fixed rule) + α × the fixed rule’s value, and the confidence
sequence’s upper bound on it (None before CS_MIN sessions): below 0, the policy costs more
than α of the fixed rule’s quality.
ucb: Option<f64>§labelled: u32How far its weights can be trusted (borg top Evaluation): the labelled applies weighed, the
effective number of the weights the estimate used (truncated, normalised per route: (Σw)² /
Σw²), the largest of them against their mean, and the applies whose weight the √N cap cut.
ess: f64§max_weight: f64§truncated: u32Trait Implementations§
Source§impl<'de> Deserialize<'de> for Monitor
impl<'de> Deserialize<'de> for Monitor
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
impl StructuralPartialEq for Monitor
Auto Trait Implementations§
impl Freeze for Monitor
impl RefUnwindSafe for Monitor
impl Send for Monitor
impl Sync for Monitor
impl Unpin for Monitor
impl UnsafeUnpin for Monitor
impl UnwindSafe for Monitor
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