pub struct Metrics {Show 14 fields
pub n_items: usize,
pub n_missing: usize,
pub n_predicted: usize,
pub n_scored: usize,
pub accuracy: Option<f64>,
pub balanced_accuracy: Option<f64>,
pub classes_in_gold: Vec<String>,
pub per_class_recall: BTreeMap<String, f64>,
pub nll: Option<f64>,
pub brier_multiclass: Option<f64>,
pub n_binary: usize,
pub brier_binary: Option<f64>,
pub ece: Option<f64>,
pub reliability: Vec<ReliabilityBin>,
}Expand description
Every number computed for one stratum.
deny_unknown_fields: a fabricated extra metric must fail to load rather
than ride along inside a report that verify then passes.
Fields§
§n_items: usizeRows in the stratum.
n_missing: usizeRows with neither a probability vector nor a label.
n_predicted: usizeRows that produced a predicted slot.
n_scored: usizeRows that produced a full probability vector.
accuracy: Option<f64>correct / n_predicted; None when nothing was predicted.
balanced_accuracy: Option<f64>Mean per-class recall over the classes present as gold.
classes_in_gold: Vec<String>The classes balanced accuracy averaged over (the gold classes present).
per_class_recall: BTreeMap<String, f64>Per-class recall for every gold class present.
nll: Option<f64>Mean negative log-likelihood of the gold slot.
brier_multiclass: Option<f64>Mean multiclass Brier score.
n_binary: usizeScored rows that declared a positive class (the brier_binary denominator).
brier_binary: Option<f64>Mean binary Brier score over the rows that declared a positive class.
ece: Option<f64>Expected calibration error over bins equal-width confidence bins.
reliability: Vec<ReliabilityBin>The per-bin tuples ECE is summed from.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metrics
impl<'de> Deserialize<'de> for Metrics
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>,
impl StructuralPartialEq for Metrics
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnsafeUnpin for Metrics
impl UnwindSafe for Metrics
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more