Struct google_api_proto::google::cloud::aiplatform::v1beta1::EvaluatedAnnotation
source · pub struct EvaluatedAnnotation {
pub type: i32,
pub predictions: Vec<Value>,
pub ground_truths: Vec<Value>,
pub data_item_payload: Option<Value>,
pub evaluated_data_item_view_id: String,
pub explanations: Vec<EvaluatedAnnotationExplanation>,
pub error_analysis_annotations: Vec<ErrorAnalysisAnnotation>,
}
Expand description
True positive, false positive, or false negative.
EvaluatedAnnotation is only available under ModelEvaluationSlice with slice
of annotationSpec
dimension.
Fields§
§type: i32
Output only. Type of the EvaluatedAnnotation.
predictions: Vec<Value>
Output only. The model predicted annotations.
For true positive, there is one and only one prediction, which matches the only one ground truth annotation in [ground_truths][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.ground_truths].
For false positive, there is one and only one prediction, which doesn’t match any ground truth annotation of the corresponding [data_item_view_id][EvaluatedAnnotation.data_item_view_id].
For false negative, there are zero or more predictions which are similar to the only ground truth annotation in [ground_truths][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.ground_truths] but not enough for a match.
The schema of the prediction is stored in [ModelEvaluation.annotation_schema_uri][]
ground_truths: Vec<Value>
Output only. The ground truth Annotations, i.e. the Annotations that exist in the test data the Model is evaluated on.
For true positive, there is one and only one ground truth annotation, which matches the only prediction in [predictions][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.predictions].
For false positive, there are zero or more ground truth annotations that are similar to the only prediction in [predictions][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.predictions], but not enough for a match.
For false negative, there is one and only one ground truth annotation, which doesn’t match any predictions created by the model.
The schema of the ground truth is stored in [ModelEvaluation.annotation_schema_uri][]
data_item_payload: Option<Value>
Output only. The data item payload that the Model predicted this EvaluatedAnnotation on.
evaluated_data_item_view_id: String
Output only. ID of the EvaluatedDataItemView under the same ancestor ModelEvaluation. The EvaluatedDataItemView consists of all ground truths and predictions on [data_item_payload][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.data_item_payload].
explanations: Vec<EvaluatedAnnotationExplanation>
Explanations of [predictions][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.predictions]. Each element of the explanations indicates the explanation for one explanation Method.
The attributions list in the [EvaluatedAnnotationExplanation.explanation][google.cloud.aiplatform.v1beta1.EvaluatedAnnotationExplanation.explanation] object corresponds to the [predictions][google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.predictions] list. For example, the second element in the attributions list explains the second element in the predictions list.
error_analysis_annotations: Vec<ErrorAnalysisAnnotation>
Annotations of model error analysis results.
Implementations§
source§impl EvaluatedAnnotation
impl EvaluatedAnnotation
sourcepub fn type(&self) -> EvaluatedAnnotationType
pub fn type(&self) -> EvaluatedAnnotationType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: EvaluatedAnnotationType)
pub fn set_type(&mut self, value: EvaluatedAnnotationType)
Sets type
to the provided enum value.
Trait Implementations§
source§impl Clone for EvaluatedAnnotation
impl Clone for EvaluatedAnnotation
source§fn clone(&self) -> EvaluatedAnnotation
fn clone(&self) -> EvaluatedAnnotation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluatedAnnotation
impl Debug for EvaluatedAnnotation
source§impl Default for EvaluatedAnnotation
impl Default for EvaluatedAnnotation
source§impl Message for EvaluatedAnnotation
impl Message for EvaluatedAnnotation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for EvaluatedAnnotation
impl PartialEq for EvaluatedAnnotation
source§fn eq(&self, other: &EvaluatedAnnotation) -> bool
fn eq(&self, other: &EvaluatedAnnotation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EvaluatedAnnotation
Auto Trait Implementations§
impl Freeze for EvaluatedAnnotation
impl RefUnwindSafe for EvaluatedAnnotation
impl Send for EvaluatedAnnotation
impl Sync for EvaluatedAnnotation
impl Unpin for EvaluatedAnnotation
impl UnwindSafe for EvaluatedAnnotation
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request