pub struct CalibrationPrediction {
pub id: String,
pub statement: String,
pub probability: f64,
pub confidence: f64,
pub scenario: String,
pub outcome: Option<bool>,
pub brier_score: Option<f64>,
pub adjusted_probability: Option<f64>,
}Expand description
A single recorded prediction, resolved or pending.
Fields§
§id: StringStable identifier for the prediction.
statement: StringThe prediction statement.
probability: f64Predicted probability in [0, 1].
confidence: f64Self-reported confidence in [0, 1] (informational).
scenario: StringScenario / context label.
outcome: Option<bool>Observed outcome (None until resolved).
brier_score: Option<f64>Brier score once resolved: (p − o)².
adjusted_probability: Option<f64>Probability after the historical calibration adjustment.
Implementations§
Trait Implementations§
Source§impl Clone for CalibrationPrediction
impl Clone for CalibrationPrediction
Source§fn clone(&self) -> CalibrationPrediction
fn clone(&self) -> CalibrationPrediction
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 CalibrationPrediction
impl Debug for CalibrationPrediction
Source§impl<'de> Deserialize<'de> for CalibrationPrediction
impl<'de> Deserialize<'de> for CalibrationPrediction
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 CalibrationPrediction
impl RefUnwindSafe for CalibrationPrediction
impl Send for CalibrationPrediction
impl Sync for CalibrationPrediction
impl Unpin for CalibrationPrediction
impl UnsafeUnpin for CalibrationPrediction
impl UnwindSafe for CalibrationPrediction
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