NAME
Google::Cloud::Automl::V1beta1::Classification - Compiled Protocol Buffers messages for google/cloud/automl/v1beta1/classification.proto
SYNOPSIS
use Google::Cloud::Automl::V1beta1::Classification;
my $msg = Google::Cloud::Automl::V1beta1::Classification::ClassificationAnnotation->new({
score => $score,
});
# Read or update a field
my $val = $msg->score();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Automl::V1beta1::Classification::ClassificationAnnotation->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/automl/v1beta1/classification.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::V1beta1::Classification::ClassificationAnnotation
Contains annotation details specific to classification.
Inherits from Protobuf::Message.
Accessors
$msg->score()/$msg->score($value)Type:
FloatOutput only. A confidence estimate between 0.0 and 1.0. A higher value means greater confidence that the annotation is positive. If a user approves an annotation as negative or positive, the score value remains unchanged. If a user creates an annotation, the score is 0 for negative or 1 for positive.
Google::Cloud::Automl::V1beta1::Classification::VideoClassificationAnnotation
Contains annotation details specific to video classification.
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
StringOutput only. Expresses the type of video classification. Possible values:
* `segment` - Classification done on a specified by user time segment of a video. AnnotationSpec is answered to be present in that time segment, if it is present in any part of it. The video ML model evaluations are done only for this type of classification.
* `shot`- Shot-level classification. AutoML Video Intelligence determines the boundaries for each camera shot in the entire segment of the video that user specified in the request configuration. AutoML Video Intelligence then returns labels and their confidence scores for each detected shot, along with the start and end time of the shot. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality.
* `1s_interval` - AutoML Video Intelligence returns labels and their confidence scores for each second of the entire segment of the video that user specified in the request configuration. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality.
$msg->classification_annotation()/$msg->classification_annotation($value)Type:
Message(Google::Cloud::Automl::V1beta1::Classification::ClassificationAnnotation)Output only . The classification details of this annotation.
$msg->time_segment()/$msg->time_segment($value)Type:
Message(Google::Cloud::Automl::V1beta1::Temporal::TimeSegment)Output only . The time segment of the video to which the annotation applies.
Google::Cloud::Automl::V1beta1::Classification::ClassificationEvaluationMetrics
Model evaluation metrics for classification problems. Note: For Video Classification this metrics only describe quality of the Video Classification predictions of "segment_classification" type.
Inherits from Protobuf::Message.
Accessors
$msg->au_prc()/$msg->au_prc($value)Type:
FloatOutput only. The Area Under Precision-Recall Curve metric. Micro-averaged for the overall evaluation.
$msg->base_au_prc()/$msg->base_au_prc($value)Type:
FloatOutput only. The Area Under Precision-Recall Curve metric based on priors. Micro-averaged for the overall evaluation. Deprecated.
$msg->au_roc()/$msg->au_roc($value)Type:
FloatOutput only. The Area Under Receiver Operating Characteristic curve metric. Micro-averaged for the overall evaluation.
$msg->log_loss()/$msg->log_loss($value)Type:
FloatOutput only. The Log Loss metric.
$msg->confidence_metrics_entry()/$msg->confidence_metrics_entry($value)Type:
Message(Google::Cloud::Automl::V1beta1::Classification::ClassificationEvaluationMetrics::ConfidenceMetricsEntry)Output only. Metrics for each confidence_threshold in 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and position_threshold = INT32_MAX_VALUE. ROC and precision-recall curves, and other aggregated metrics are derived from them. The confidence metrics entries may also be supplied for additional values of position_threshold, but from these no aggregated metrics are computed.
$msg->confusion_matrix()/$msg->confusion_matrix($value)Type:
Message(Google::Cloud::Automl::V1beta1::Classification::ClassificationEvaluationMetrics::ConfusionMatrix)Output only. Confusion matrix of the evaluation. Only set for MULTICLASS classification problems where number of labels is no more than 10. Only set for model level evaluation, not for evaluation per label.
$msg->annotation_spec_id()/$msg->annotation_spec_id($value)Type:
StringOutput only. The annotation spec ids used for this evaluation.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Automl::V1beta1::Classification::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.