pub struct ConformalIntervalBlock {
pub schema_version: u32,
pub binding_id: String,
pub sample_ids: Vec<SampleId>,
pub intervals: Vec<RegressionConformalInterval>,
pub calibration_fingerprint: String,
pub point_prediction_fingerprint: String,
}Expand description
Identity-preserving interval result for one replayed point block.
Fields§
§schema_version: u32§binding_id: String§sample_ids: Vec<SampleId>§intervals: Vec<RegressionConformalInterval>§calibration_fingerprint: String§point_prediction_fingerprint: StringImplementations§
Source§impl ConformalIntervalBlock
impl ConformalIntervalBlock
pub fn validate(&self) -> Result<(), DagMlError>
Source§impl ConformalIntervalBlock
impl ConformalIntervalBlock
Sourcepub fn validate_against(
&self,
calibration: &ConformalCalibration,
predictions: &PredictionBlock,
) -> Result<(), DagMlError>
pub fn validate_against( &self, calibration: &ConformalCalibration, predictions: &PredictionBlock, ) -> Result<(), DagMlError>
Validate interval closure against the actual point block and quantiles; a matching hash alone is never treated as sufficient.
Trait Implementations§
Source§impl Clone for ConformalIntervalBlock
impl Clone for ConformalIntervalBlock
Source§fn clone(&self) -> ConformalIntervalBlock
fn clone(&self) -> ConformalIntervalBlock
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 ConformalIntervalBlock
impl Debug for ConformalIntervalBlock
Source§impl<'de> Deserialize<'de> for ConformalIntervalBlock
impl<'de> Deserialize<'de> for ConformalIntervalBlock
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConformalIntervalBlock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConformalIntervalBlock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConformalIntervalBlock
impl PartialEq for ConformalIntervalBlock
Source§impl Serialize for ConformalIntervalBlock
impl Serialize for ConformalIntervalBlock
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ConformalIntervalBlock
Auto Trait Implementations§
impl Freeze for ConformalIntervalBlock
impl RefUnwindSafe for ConformalIntervalBlock
impl Send for ConformalIntervalBlock
impl Sync for ConformalIntervalBlock
impl Unpin for ConformalIntervalBlock
impl UnsafeUnpin for ConformalIntervalBlock
impl UnwindSafe for ConformalIntervalBlock
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