pub struct Calibration {
pub recorded: usize,
pub resolved: usize,
pub unresolved: usize,
pub mean_abs_error: Option<f64>,
}Expand description
How well past projections matched reality — over the branches that were resolvable.
Fields§
§recorded: usizeCounterfactuals recorded in total.
resolved: usizeThose with a matching MemoryBody::Realisation.
unresolved: usizeThose without. Counted, never scored — see the crate note.
mean_abs_error: Option<f64>Mean absolute error over the resolved ones only, or None when none resolved.
None rather than 0.0: a perfect score and no evidence must not print alike.
Trait Implementations§
Source§impl Clone for Calibration
impl Clone for Calibration
Source§fn clone(&self) -> Calibration
fn clone(&self) -> Calibration
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 Calibration
impl Debug for Calibration
Source§impl<'de> Deserialize<'de> for Calibration
impl<'de> Deserialize<'de> for Calibration
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
Source§impl PartialEq for Calibration
impl PartialEq for Calibration
Source§impl Serialize for Calibration
impl Serialize for Calibration
impl StructuralPartialEq for Calibration
Auto Trait Implementations§
impl Freeze for Calibration
impl RefUnwindSafe for Calibration
impl Send for Calibration
impl Sync for Calibration
impl Unpin for Calibration
impl UnsafeUnpin for Calibration
impl UnwindSafe for Calibration
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