pub struct PredictionReport { /* private fields */ }Expand description
An immutable snapshot of diagnostics for a single prediction.
Implementations§
Source§impl PredictionReport
impl PredictionReport
Sourcepub const fn prediction(&self) -> f64
pub const fn prediction(&self) -> f64
The prediction that this report was generated for.
Sourcepub const fn lower_bound(&self) -> Option<f64>
pub const fn lower_bound(&self) -> Option<f64>
Lower bound of the prediction interval, or None if insufficient data.
Sourcepub const fn upper_bound(&self) -> Option<f64>
pub const fn upper_bound(&self) -> Option<f64>
Upper bound of the prediction interval, or None if insufficient data.
Sourcepub const fn confidence(&self) -> Confidence
pub const fn confidence(&self) -> Confidence
Coarse confidence level for this prediction.
Sourcepub const fn samples_seen(&self) -> u64
pub const fn samples_seen(&self) -> u64
Total number of samples observed so far.
Sourcepub const fn recent_error(&self) -> Option<f64>
pub const fn recent_error(&self) -> Option<f64>
Recent (EW mean) absolute error, or None if no errors recorded.
Sourcepub const fn baseline_error(&self) -> Option<f64>
pub const fn baseline_error(&self) -> Option<f64>
Baseline error for comparison, or None if not set.
Sourcepub const fn warmup_state(&self) -> WarmupState
pub const fn warmup_state(&self) -> WarmupState
Current warmup state of the model.
Sourcepub const fn beats_baseline(&self) -> Option<bool>
pub const fn beats_baseline(&self) -> Option<bool>
Whether the model is currently beating the baseline.
Returns None if either recent error or baseline error is unavailable.
Trait Implementations§
Source§impl Clone for PredictionReport
impl Clone for PredictionReport
Source§fn clone(&self) -> PredictionReport
fn clone(&self) -> PredictionReport
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 moreAuto Trait Implementations§
impl Freeze for PredictionReport
impl RefUnwindSafe for PredictionReport
impl Send for PredictionReport
impl Sync for PredictionReport
impl Unpin for PredictionReport
impl UnsafeUnpin for PredictionReport
impl UnwindSafe for PredictionReport
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