pub struct CalibratedLossMatrix {
pub matrix: LossMatrix,
pub shrinkage_weights: LossShrinkageWeights,
pub sample_counts: LossSampleCounts,
pub calibrated_at_unix_ms: u128,
}Expand description
A loss matrix calibrated via Bayesian shrinkage from observed data.
Fields§
§matrix: LossMatrixThe calibrated loss values.
shrinkage_weights: LossShrinkageWeightsShrinkage weights applied (0 = pure prior, 1 = pure empirical).
sample_counts: LossSampleCountsSample counts per category.
calibrated_at_unix_ms: u128Calibration timestamp.
Trait Implementations§
Source§impl Clone for CalibratedLossMatrix
impl Clone for CalibratedLossMatrix
Source§fn clone(&self) -> CalibratedLossMatrix
fn clone(&self) -> CalibratedLossMatrix
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 CalibratedLossMatrix
impl Debug for CalibratedLossMatrix
Source§impl PartialEq for CalibratedLossMatrix
impl PartialEq for CalibratedLossMatrix
Source§fn eq(&self, other: &CalibratedLossMatrix) -> bool
fn eq(&self, other: &CalibratedLossMatrix) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CalibratedLossMatrix
Auto Trait Implementations§
impl Freeze for CalibratedLossMatrix
impl RefUnwindSafe for CalibratedLossMatrix
impl Send for CalibratedLossMatrix
impl Sync for CalibratedLossMatrix
impl Unpin for CalibratedLossMatrix
impl UnsafeUnpin for CalibratedLossMatrix
impl UnwindSafe for CalibratedLossMatrix
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