pub struct ConformalResult {
pub alpha: f64,
pub delta: f64,
pub threshold: f64,
pub served_frac: f64,
pub calib_risk: f64,
pub feasible: bool,
}Expand description
The result of calibrating a conformal threshold.
Fields§
§alpha: f64Target served-failure rate.
delta: f64Confidence parameter (bound holds with probability ≥ 1 − δ).
threshold: f64Chosen score threshold λ; serve iff score ≥ λ.
served_frac: f64Fraction of the calibration set that would be served at this threshold.
calib_risk: f64Empirical failure rate among served calibration items.
feasible: boolWhether any threshold met the target (false ⇒ serve-nothing, target infeasible on this data).
Trait Implementations§
Source§impl Clone for ConformalResult
impl Clone for ConformalResult
Source§fn clone(&self) -> ConformalResult
fn clone(&self) -> ConformalResult
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 ConformalResult
impl Debug for ConformalResult
Auto Trait Implementations§
impl Freeze for ConformalResult
impl RefUnwindSafe for ConformalResult
impl Send for ConformalResult
impl Sync for ConformalResult
impl Unpin for ConformalResult
impl UnsafeUnpin for ConformalResult
impl UnwindSafe for ConformalResult
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