pub struct PredictionOutcome {
pub predicted_probability: f64,
pub actual_outcome: f64,
pub ts_unix_ms: u128,
}Expand description
A single prediction-outcome pair for Brier score computation.
Fields§
§predicted_probability: f64Predicted probability of incompatibility (0-1).
actual_outcome: f64Actual outcome: 1.0 if incompatible, 0.0 if compatible.
ts_unix_ms: u128Timestamp of the observation.
Trait Implementations§
Source§impl Clone for PredictionOutcome
impl Clone for PredictionOutcome
Source§fn clone(&self) -> PredictionOutcome
fn clone(&self) -> PredictionOutcome
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 moreimpl Copy for PredictionOutcome
Source§impl Debug for PredictionOutcome
impl Debug for PredictionOutcome
Source§impl PartialEq for PredictionOutcome
impl PartialEq for PredictionOutcome
Source§fn eq(&self, other: &PredictionOutcome) -> bool
fn eq(&self, other: &PredictionOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PredictionOutcome
Auto Trait Implementations§
impl Freeze for PredictionOutcome
impl RefUnwindSafe for PredictionOutcome
impl Send for PredictionOutcome
impl Sync for PredictionOutcome
impl Unpin for PredictionOutcome
impl UnsafeUnpin for PredictionOutcome
impl UnwindSafe for PredictionOutcome
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