Skip to main content

Calibration

Struct Calibration 

Source
pub struct Calibration {
    pub n: usize,
    pub brier: f64,
    pub log_loss: f64,
    pub skill: f64,
    pub bins: Vec<ReliabilityBin>,
    pub check_n: usize,
    pub check_skill: f64,
    pub check_log_loss: f64,
    pub hit_rate: f64,
    pub by_provenance: Vec<ProvenanceScore>,
}
Expand description

Calibration summary over a set of forecasts.

Fields§

§n: usize

Forecasts scored.

§brier: f64

Prequential Brier score, mean (p_chosen − 1)². Lower is better; 0.25 is the always-0.5 baseline.

§log_loss: f64

Prequential log-loss, mean −ln p_chosen, in nats. Lower is better; ln 2 ≈ 0.693 is the always-0.5 baseline.

Comparable across time for one acquisition rule, and not comparable across acquisition rules: an information-seeking rule deliberately serves duels near p = 0.5, which carry the highest log-loss by construction. Comparing rules on their own self-chosen question sets would score the willingness to ask hard questions as a failure. Use check_log_loss for that.

§skill: f64

Brier skill against a coin flip, 1 − B/0.25. 0 = no better than chance, 1 = perfect and certain, negative = worse than a coin.

§bins: Vec<ReliabilityBin>

Reliability diagram buckets over P(A wins).

§check_n: usize

Forecasts among the uniformly-random check duels.

§check_skill: f64

Brier skill restricted to the check duels — the selection-bias-free number.

§check_log_loss: f64

Log-loss restricted to the uniformly-random check duels, in nats. The only log-loss here that means the same thing under any acquisition rule.

§hit_rate: f64

Running hit rate, kept only so a frontend can show how misleading it is next to the skill score.

§by_provenance: Vec<ProvenanceScore>

The same scores, split by how the answer was collected. Empty streams are omitted, so a session that has never committed a hand edit carries exactly one row and reads as it always did.

Trait Implementations§

Source§

impl Clone for Calibration

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for Calibration

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Calibration

Source§

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 Serialize for Calibration

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,