public final class ModelEvaluation extends com.google.protobuf.GeneratedMessageV3 implements ModelEvaluationOrBuilder
Evaluation results of a model.Protobuf type
google.cloud.automl.v1.ModelEvaluation| Modifier and Type | Class and Description |
|---|---|
static class |
ModelEvaluation.Builder
Evaluation results of a model.
|
static class |
ModelEvaluation.MetricsCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATION_SPEC_ID_FIELD_NUMBER |
static int |
CLASSIFICATION_EVALUATION_METRICS_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
EVALUATED_EXAMPLE_COUNT_FIELD_NUMBER |
static int |
IMAGE_OBJECT_DETECTION_EVALUATION_METRICS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
TEXT_EXTRACTION_EVALUATION_METRICS_FIELD_NUMBER |
static int |
TEXT_SENTIMENT_EVALUATION_METRICS_FIELD_NUMBER |
static int |
TRANSLATION_EVALUATION_METRICS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAnnotationSpecId()
Output only.
|
com.google.protobuf.ByteString |
getAnnotationSpecIdBytes()
Output only.
|
ClassificationEvaluationMetrics |
getClassificationEvaluationMetrics()
Model evaluation metrics for image, text, video and tables
classification.
|
ClassificationEvaluationMetricsOrBuilder |
getClassificationEvaluationMetricsOrBuilder()
Model evaluation metrics for image, text, video and tables
classification.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static ModelEvaluation |
getDefaultInstance() |
ModelEvaluation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
Output only.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Output only.
|
int |
getEvaluatedExampleCount()
Output only.
|
ImageObjectDetectionEvaluationMetrics |
getImageObjectDetectionEvaluationMetrics()
Model evaluation metrics for image object detection.
|
ImageObjectDetectionEvaluationMetricsOrBuilder |
getImageObjectDetectionEvaluationMetricsOrBuilder()
Model evaluation metrics for image object detection.
|
ModelEvaluation.MetricsCase |
getMetricsCase() |
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<ModelEvaluation> |
getParserForType() |
int |
getSerializedSize() |
TextExtractionEvaluationMetrics |
getTextExtractionEvaluationMetrics()
Evaluation metrics for text extraction models.
|
TextExtractionEvaluationMetricsOrBuilder |
getTextExtractionEvaluationMetricsOrBuilder()
Evaluation metrics for text extraction models.
|
TextSentimentEvaluationMetrics |
getTextSentimentEvaluationMetrics()
Evaluation metrics for text sentiment models.
|
TextSentimentEvaluationMetricsOrBuilder |
getTextSentimentEvaluationMetricsOrBuilder()
Evaluation metrics for text sentiment models.
|
TranslationEvaluationMetrics |
getTranslationEvaluationMetrics()
Model evaluation metrics for translation.
|
TranslationEvaluationMetricsOrBuilder |
getTranslationEvaluationMetricsOrBuilder()
Model evaluation metrics for translation.
|
boolean |
hasClassificationEvaluationMetrics()
Model evaluation metrics for image, text, video and tables
classification.
|
boolean |
hasCreateTime()
Output only.
|
int |
hashCode() |
boolean |
hasImageObjectDetectionEvaluationMetrics()
Model evaluation metrics for image object detection.
|
boolean |
hasTextExtractionEvaluationMetrics()
Evaluation metrics for text extraction models.
|
boolean |
hasTextSentimentEvaluationMetrics()
Evaluation metrics for text sentiment models.
|
boolean |
hasTranslationEvaluationMetrics()
Model evaluation metrics for translation.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ModelEvaluation.Builder |
newBuilder() |
static ModelEvaluation.Builder |
newBuilder(ModelEvaluation prototype) |
ModelEvaluation.Builder |
newBuilderForType() |
protected ModelEvaluation.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ModelEvaluation |
parseDelimitedFrom(InputStream input) |
static ModelEvaluation |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelEvaluation |
parseFrom(byte[] data) |
static ModelEvaluation |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelEvaluation |
parseFrom(ByteBuffer data) |
static ModelEvaluation |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelEvaluation |
parseFrom(com.google.protobuf.ByteString data) |
static ModelEvaluation |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelEvaluation |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ModelEvaluation |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelEvaluation |
parseFrom(InputStream input) |
static ModelEvaluation |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ModelEvaluation> |
parser() |
ModelEvaluation.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CLASSIFICATION_EVALUATION_METRICS_FIELD_NUMBER
public static final int TRANSLATION_EVALUATION_METRICS_FIELD_NUMBER
public static final int IMAGE_OBJECT_DETECTION_EVALUATION_METRICS_FIELD_NUMBER
public static final int TEXT_SENTIMENT_EVALUATION_METRICS_FIELD_NUMBER
public static final int TEXT_EXTRACTION_EVALUATION_METRICS_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int EVALUATED_EXAMPLE_COUNT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public ModelEvaluation.MetricsCase getMetricsCase()
getMetricsCase in interface ModelEvaluationOrBuilderpublic boolean hasClassificationEvaluationMetrics()
Model evaluation metrics for image, text, video and tables classification. Tables problem is considered a classification when the target column is CATEGORY DataType.
.google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;
hasClassificationEvaluationMetrics in interface ModelEvaluationOrBuilderpublic ClassificationEvaluationMetrics getClassificationEvaluationMetrics()
Model evaluation metrics for image, text, video and tables classification. Tables problem is considered a classification when the target column is CATEGORY DataType.
.google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;
getClassificationEvaluationMetrics in interface ModelEvaluationOrBuilderpublic ClassificationEvaluationMetricsOrBuilder getClassificationEvaluationMetricsOrBuilder()
Model evaluation metrics for image, text, video and tables classification. Tables problem is considered a classification when the target column is CATEGORY DataType.
.google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;
getClassificationEvaluationMetricsOrBuilder in interface ModelEvaluationOrBuilderpublic boolean hasTranslationEvaluationMetrics()
Model evaluation metrics for translation.
.google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;
hasTranslationEvaluationMetrics in interface ModelEvaluationOrBuilderpublic TranslationEvaluationMetrics getTranslationEvaluationMetrics()
Model evaluation metrics for translation.
.google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;
getTranslationEvaluationMetrics in interface ModelEvaluationOrBuilderpublic TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder()
Model evaluation metrics for translation.
.google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;
getTranslationEvaluationMetricsOrBuilder in interface ModelEvaluationOrBuilderpublic boolean hasImageObjectDetectionEvaluationMetrics()
Model evaluation metrics for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;
hasImageObjectDetectionEvaluationMetrics in interface ModelEvaluationOrBuilderpublic ImageObjectDetectionEvaluationMetrics getImageObjectDetectionEvaluationMetrics()
Model evaluation metrics for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;
getImageObjectDetectionEvaluationMetrics in interface ModelEvaluationOrBuilderpublic ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder()
Model evaluation metrics for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;
getImageObjectDetectionEvaluationMetricsOrBuilder in interface ModelEvaluationOrBuilderpublic boolean hasTextSentimentEvaluationMetrics()
Evaluation metrics for text sentiment models.
.google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;
hasTextSentimentEvaluationMetrics in interface ModelEvaluationOrBuilderpublic TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics()
Evaluation metrics for text sentiment models.
.google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;
getTextSentimentEvaluationMetrics in interface ModelEvaluationOrBuilderpublic TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder()
Evaluation metrics for text sentiment models.
.google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;
getTextSentimentEvaluationMetricsOrBuilder in interface ModelEvaluationOrBuilderpublic boolean hasTextExtractionEvaluationMetrics()
Evaluation metrics for text extraction models.
.google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;
hasTextExtractionEvaluationMetrics in interface ModelEvaluationOrBuilderpublic TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics()
Evaluation metrics for text extraction models.
.google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;
getTextExtractionEvaluationMetrics in interface ModelEvaluationOrBuilderpublic TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder()
Evaluation metrics for text extraction models.
.google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;
getTextExtractionEvaluationMetricsOrBuilder in interface ModelEvaluationOrBuilderpublic String getName()
Output only. Resource name of the model evaluation.
Format:
`projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
string name = 1;getName in interface ModelEvaluationOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. Resource name of the model evaluation.
Format:
`projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
string name = 1;getNameBytes in interface ModelEvaluationOrBuilderpublic String getAnnotationSpecId()
Output 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.
string annotation_spec_id = 2;getAnnotationSpecId in interface ModelEvaluationOrBuilderpublic com.google.protobuf.ByteString getAnnotationSpecIdBytes()
Output 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.
string annotation_spec_id = 2;getAnnotationSpecIdBytes in interface ModelEvaluationOrBuilderpublic String getDisplayName()
Output 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.
string display_name = 15;getDisplayName in interface ModelEvaluationOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Output 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.
string display_name = 15;getDisplayNameBytes in interface ModelEvaluationOrBuilderpublic boolean hasCreateTime()
Output only. Timestamp when this model evaluation was created.
.google.protobuf.Timestamp create_time = 5;hasCreateTime in interface ModelEvaluationOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. Timestamp when this model evaluation was created.
.google.protobuf.Timestamp create_time = 5;getCreateTime in interface ModelEvaluationOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp when this model evaluation was created.
.google.protobuf.Timestamp create_time = 5;getCreateTimeOrBuilder in interface ModelEvaluationOrBuilderpublic int getEvaluatedExampleCount()
Output 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].
int32 evaluated_example_count = 6;getEvaluatedExampleCount in interface ModelEvaluationOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ModelEvaluation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelEvaluation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelEvaluation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelEvaluation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelEvaluation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelEvaluation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelEvaluation parseFrom(InputStream input) throws IOException
IOExceptionpublic static ModelEvaluation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ModelEvaluation parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ModelEvaluation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ModelEvaluation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ModelEvaluation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ModelEvaluation.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ModelEvaluation.Builder newBuilder()
public static ModelEvaluation.Builder newBuilder(ModelEvaluation prototype)
public ModelEvaluation.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ModelEvaluation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ModelEvaluation getDefaultInstance()
public static com.google.protobuf.Parser<ModelEvaluation> parser()
public com.google.protobuf.Parser<ModelEvaluation> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ModelEvaluation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.