NAME
Google::Cloud::Automl::V1::ModelEvaluation - Compiled Protocol Buffers messages for google/cloud/automl/v1/model_evaluation.proto
SYNOPSIS
use Google::Cloud::Automl::V1::ModelEvaluation;
my $msg = Google::Cloud::Automl::V1::ModelEvaluation::ModelEvaluation->new({
classification_evaluation_metrics => $classification_evaluation_metrics,
translation_evaluation_metrics => $translation_evaluation_metrics,
image_object_detection_evaluation_metrics => $image_object_detection_evaluation_metrics,
text_sentiment_evaluation_metrics => $text_sentiment_evaluation_metrics,
});
# Read or update a field
my $val = $msg->classification_evaluation_metrics();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Automl::V1::ModelEvaluation::ModelEvaluation->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/automl/v1/model_evaluation.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Automl::V1::ModelEvaluation::ModelEvaluation
Evaluation results of a model.
Inherits from Protobuf::Message.
Accessors
$msg->classification_evaluation_metrics()/$msg->classification_evaluation_metrics($value)Type:
Message(Google::Cloud::Automl::V1::Classification::ClassificationEvaluationMetrics)Model evaluation metrics for image, text, video and tables classification. Tables problem is considered a classification when the target column is CATEGORY DataType.
$msg->translation_evaluation_metrics()/$msg->translation_evaluation_metrics($value)Type:
Message(Google::Cloud::Automl::V1::Translation::TranslationEvaluationMetrics)Model evaluation metrics for translation.
$msg->image_object_detection_evaluation_metrics()/$msg->image_object_detection_evaluation_metrics($value)Type:
Message(Google::Cloud::Automl::V1::Detection::ImageObjectDetectionEvaluationMetrics)Model evaluation metrics for image object detection.
$msg->text_sentiment_evaluation_metrics()/$msg->text_sentiment_evaluation_metrics($value)Type:
Message(Google::Cloud::Automl::V1::TextSentiment::TextSentimentEvaluationMetrics)Evaluation metrics for text sentiment models.
$msg->text_extraction_evaluation_metrics()/$msg->text_extraction_evaluation_metrics($value)Type:
Message(Google::Cloud::Automl::V1::TextExtraction::TextExtractionEvaluationMetrics)Evaluation metrics for text extraction models.
$msg->name()/$msg->name($value)Type:
StringOutput only. Resource name of the model evaluation. Format: `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
$msg->annotation_spec_id()/$msg->annotation_spec_id($value)Type:
StringOutput only. The ID of the annotation spec that the model evaluation applies to. The The ID is empty for the overall model evaluation. For Tables annotation specs in the dataset do not exist and this ID is always not set, but for CLASSIFICATION [prediction_type-s][google.cloud.automl.v1.TablesModelMetadata.prediction_type] the [display_name][google.cloud.automl.v1.ModelEvaluation.display_name] field is used.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. The value of [display_name][google.cloud.automl.v1.AnnotationSpec.display_name] at the moment when the model was trained. Because this field returns a value at model training time, for different models trained from the same dataset, the values may differ, since display names could had been changed between the two model's trainings. For Tables CLASSIFICATION [prediction_type-s][google.cloud.automl.v1.TablesModelMetadata.prediction_type] distinct values of the target column at the moment of the model evaluation are populated here. The display_name is empty for the overall model evaluation.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp when this model evaluation was created.
$msg->evaluated_example_count()/$msg->evaluated_example_count($value)Type:
Int32Output only. The number of examples used for model evaluation, i.e. for which ground truth from time of model creation is compared against the predicted annotations created by the model. For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is the total number of all examples used for evaluation. Otherwise, this is the count of examples that according to the ground truth were annotated by the [annotation_spec_id][google.cloud.automl.v1.ModelEvaluation.annotation_spec_id].
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Automl::V1::ModelEvaluation::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.