#[non_exhaustive]pub struct ErrorAnalysisAnnotation {
pub attributed_items: Vec<AttributedItem>,
pub query_type: QueryType,
pub outlier_score: f64,
pub outlier_threshold: f64,
/* private fields */
}Available on crate feature
model-service only.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.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::error_analysis_annotation::AttributedItem;
let x = ErrorAnalysisAnnotation::new()
.set_attributed_items([
AttributedItem::default()/* use setters */,
AttributedItem::default()/* use (different) setters */,
]);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.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::error_analysis_annotation::QueryType;
let x0 = ErrorAnalysisAnnotation::new().set_query_type(QueryType::AllSimilar);
let x1 = ErrorAnalysisAnnotation::new().set_query_type(QueryType::SameClassSimilar);
let x2 = ErrorAnalysisAnnotation::new().set_query_type(QueryType::SameClassDissimilar);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.
§Example
ⓘ
let x = ErrorAnalysisAnnotation::new().set_outlier_score(42.0);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.
§Example
ⓘ
let x = ErrorAnalysisAnnotation::new().set_outlier_threshold(42.0);Trait Implementations§
Source§impl Clone for ErrorAnalysisAnnotation
impl Clone for ErrorAnalysisAnnotation
Source§fn clone(&self) -> ErrorAnalysisAnnotation
fn clone(&self) -> ErrorAnalysisAnnotation
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 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 Message for ErrorAnalysisAnnotation
impl Message for ErrorAnalysisAnnotation
Source§impl PartialEq for ErrorAnalysisAnnotation
impl PartialEq 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