pub struct ConformalPrediction {
pub upper_us: f64,
pub risk: bool,
pub confidence: f64,
pub bucket: BucketKey,
pub sample_count: usize,
pub quantile: f64,
pub fallback_level: u8,
pub window_size: usize,
pub reset_count: u64,
pub y_hat: f64,
pub budget_us: f64,
}Expand description
Prediction output with full explainability.
Fields§
§upper_us: f64Upper bound on frame time (microseconds).
risk: boolWhether the bound exceeds the current budget.
confidence: f64Coverage confidence (1 - alpha).
bucket: BucketKeyBucket key used for calibration (may be fallback aggregate).
sample_count: usizeCalibration sample count used for the quantile.
quantile: f64Conformal quantile q_b.
fallback_level: u8Fallback level (0 = exact, 1 = mode+diff, 2 = mode, 3 = global/default).
window_size: usizeRolling window size.
reset_count: u64Total reset count for this predictor.
y_hat: f64Base prediction f(x_t).
budget_us: f64Frame budget in microseconds.
Implementations§
Trait Implementations§
Source§impl Clone for ConformalPrediction
impl Clone for ConformalPrediction
Source§fn clone(&self) -> ConformalPrediction
fn clone(&self) -> ConformalPrediction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConformalPrediction
impl RefUnwindSafe for ConformalPrediction
impl Send for ConformalPrediction
impl Sync for ConformalPrediction
impl Unpin for ConformalPrediction
impl UnsafeUnpin for ConformalPrediction
impl UnwindSafe for ConformalPrediction
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