Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::EvaluatedAnnotation (v0.31.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::EvaluatedAnnotation.

True positive, false positive, or false negative.

EvaluatedAnnotation is only available under ModelEvaluationSlice with slice of annotationSpec dimension.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#data_item_payload

def data_item_payload() -> ::Google::Protobuf::Value
Returns

#error_analysis_annotations

def error_analysis_annotations() -> ::Array<::Google::Cloud::AIPlatform::V1::ErrorAnalysisAnnotation>
Returns

#error_analysis_annotations=

def error_analysis_annotations=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::ErrorAnalysisAnnotation>
Parameter
Returns

#evaluated_data_item_view_id

def evaluated_data_item_view_id() -> ::String
Returns
  • (::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.

#explanations

def explanations() -> ::Array<::Google::Cloud::AIPlatform::V1::EvaluatedAnnotationExplanation>
Returns

#explanations=

def explanations=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::EvaluatedAnnotationExplanation>
Parameter
Returns

#ground_truths

def ground_truths() -> ::Array<::Google::Protobuf::Value>
Returns
  • (::Array<::Google::Protobuf::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.

    For false positive, there are zero or more ground truth annotations that are similar to the only prediction in 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

#predictions

def predictions() -> ::Array<::Google::Protobuf::Value>
Returns
  • (::Array<::Google::Protobuf::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.

    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 but not enough for a match.

    The schema of the prediction is stored in ModelEvaluation.annotation_schema_uri

#type

def type() -> ::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation::EvaluatedAnnotationType
Returns