pub struct ConformalPresentationV1 {
pub schema_version: u32,
pub package_fingerprint: String,
pub replay_outcome_fingerprint: String,
pub binding_id: String,
pub target_name: String,
pub sample_ids: Vec<SampleId>,
pub point_predictions: Vec<f64>,
pub intervals: Vec<ConformalPresentationInterval>,
pub calibration_fingerprint: String,
pub presentation_fingerprint: String,
}Fields§
§schema_version: u32§package_fingerprint: String§replay_outcome_fingerprint: String§binding_id: String§target_name: String§sample_ids: Vec<SampleId>§point_predictions: Vec<f64>§intervals: Vec<ConformalPresentationInterval>§calibration_fingerprint: String§presentation_fingerprint: StringImplementations§
Source§impl ConformalPresentationV1
impl ConformalPresentationV1
pub fn from_json(json: &str) -> Result<ConformalPresentationV1, DagMlError>
pub fn compute_fingerprint(&self) -> Result<String, DagMlError>
pub fn validate(&self) -> Result<(), DagMlError>
Trait Implementations§
Source§impl Clone for ConformalPresentationV1
impl Clone for ConformalPresentationV1
Source§fn clone(&self) -> ConformalPresentationV1
fn clone(&self) -> ConformalPresentationV1
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 ConformalPresentationV1
impl Debug for ConformalPresentationV1
Source§impl<'de> Deserialize<'de> for ConformalPresentationV1
impl<'de> Deserialize<'de> for ConformalPresentationV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConformalPresentationV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConformalPresentationV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConformalPresentationV1
impl PartialEq for ConformalPresentationV1
Source§impl Serialize for ConformalPresentationV1
impl Serialize for ConformalPresentationV1
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 ConformalPresentationV1
Auto Trait Implementations§
impl Freeze for ConformalPresentationV1
impl RefUnwindSafe for ConformalPresentationV1
impl Send for ConformalPresentationV1
impl Sync for ConformalPresentationV1
impl Unpin for ConformalPresentationV1
impl UnsafeUnpin for ConformalPresentationV1
impl UnwindSafe for ConformalPresentationV1
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