#[non_exhaustive]pub struct ErrorAnalysisAnnotation {
pub attributed_items: Vec<AttributedItem>,
pub query_type: QueryType,
pub outlier_score: f64,
pub outlier_threshold: f64,
/* private fields */
}Expand description
Model error analysis for each annotation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attributed_items: Vec<AttributedItem>Attributed items for a given annotation, typically representing neighbors from the training sets constrained by the query type.
query_type: QueryTypeThe query type used for finding the attributed items.
outlier_score: f64The outlier score of this annotated item. Usually defined as the min of all distances from attributed items.
outlier_threshold: f64The threshold used to determine if this annotation is an outlier or not.
Implementations§
Source§impl ErrorAnalysisAnnotation
impl ErrorAnalysisAnnotation
pub fn new() -> Self
Sourcepub fn set_attributed_items<T, V>(self, v: T) -> Self
pub fn set_attributed_items<T, V>(self, v: T) -> Self
Sets the value of attributed_items.
Sourcepub fn set_query_type<T: Into<QueryType>>(self, v: T) -> Self
pub fn set_query_type<T: Into<QueryType>>(self, v: T) -> Self
Sets the value of query_type.
Sourcepub fn set_outlier_score<T: Into<f64>>(self, v: T) -> Self
pub fn set_outlier_score<T: Into<f64>>(self, v: T) -> Self
Sets the value of outlier_score.
Sourcepub fn set_outlier_threshold<T: Into<f64>>(self, v: T) -> Self
pub fn set_outlier_threshold<T: Into<f64>>(self, v: T) -> Self
Sets the value of outlier_threshold.
Trait Implementations§
Source§impl Clone for ErrorAnalysisAnnotation
impl Clone for ErrorAnalysisAnnotation
Source§fn clone(&self) -> ErrorAnalysisAnnotation
fn clone(&self) -> ErrorAnalysisAnnotation
Returns a copy 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 moreSource§impl Debug for ErrorAnalysisAnnotation
impl Debug for ErrorAnalysisAnnotation
Source§impl Default for ErrorAnalysisAnnotation
impl Default for ErrorAnalysisAnnotation
Source§fn default() -> ErrorAnalysisAnnotation
fn default() -> ErrorAnalysisAnnotation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ErrorAnalysisAnnotationwhere
ErrorAnalysisAnnotation: Default,
impl<'de> Deserialize<'de> for ErrorAnalysisAnnotationwhere
ErrorAnalysisAnnotation: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for ErrorAnalysisAnnotation
impl Message for ErrorAnalysisAnnotation
Source§impl PartialEq for ErrorAnalysisAnnotation
impl PartialEq for ErrorAnalysisAnnotation
Source§impl Serialize for ErrorAnalysisAnnotation
impl Serialize for ErrorAnalysisAnnotation
impl StructuralPartialEq for ErrorAnalysisAnnotation
Auto Trait Implementations§
impl Freeze for ErrorAnalysisAnnotation
impl RefUnwindSafe for ErrorAnalysisAnnotation
impl Send for ErrorAnalysisAnnotation
impl Sync for ErrorAnalysisAnnotation
impl Unpin for ErrorAnalysisAnnotation
impl UnwindSafe for ErrorAnalysisAnnotation
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