public final class ModelEvaluation extends GeneratedMessageV3 implements ModelEvaluationOrBuilder
Evaluation results of a model.
Protobuf type google.cloud.automl.v1beta1.ModelEvaluation
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ANNOTATION_SPEC_ID_FIELD_NUMBER
public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CLASSIFICATION_EVALUATION_METRICS_FIELD_NUMBER
public static final int CLASSIFICATION_EVALUATION_METRICS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
EVALUATED_EXAMPLE_COUNT_FIELD_NUMBER
public static final int EVALUATED_EXAMPLE_COUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
IMAGE_OBJECT_DETECTION_EVALUATION_METRICS_FIELD_NUMBER
public static final int IMAGE_OBJECT_DETECTION_EVALUATION_METRICS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
REGRESSION_EVALUATION_METRICS_FIELD_NUMBER
public static final int REGRESSION_EVALUATION_METRICS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TEXT_EXTRACTION_EVALUATION_METRICS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TEXT_SENTIMENT_EVALUATION_METRICS_FIELD_NUMBER
public static final int TEXT_SENTIMENT_EVALUATION_METRICS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TRANSLATION_EVALUATION_METRICS_FIELD_NUMBER
public static final int TRANSLATION_EVALUATION_METRICS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
VIDEO_OBJECT_TRACKING_EVALUATION_METRICS_FIELD_NUMBER
public static final int VIDEO_OBJECT_TRACKING_EVALUATION_METRICS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ModelEvaluation getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ModelEvaluation.Builder newBuilder()
newBuilder(ModelEvaluation prototype)
public static ModelEvaluation.Builder newBuilder(ModelEvaluation prototype)
public static ModelEvaluation parseDelimitedFrom(InputStream input)
public static ModelEvaluation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ModelEvaluation parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ModelEvaluation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ModelEvaluation parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ModelEvaluation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ModelEvaluation parseFrom(CodedInputStream input)
public static ModelEvaluation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ModelEvaluation parseFrom(InputStream input)
public static ModelEvaluation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ModelEvaluation parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ModelEvaluation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ModelEvaluation> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAnnotationSpecId()
public 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
the
display_name
field is used.
string annotation_spec_id = 2;
Returns |
Type |
Description |
String |
The annotationSpecId.
|
getAnnotationSpecIdBytes()
public 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
the
display_name
field is used.
string annotation_spec_id = 2;
Returns |
Type |
Description |
ByteString |
The bytes for annotationSpecId.
|
getClassificationEvaluationMetrics()
public ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;
getClassificationEvaluationMetricsOrBuilder()
public ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;
getCreateTime()
public Timestamp getCreateTime()
Output only. Timestamp when this model evaluation was created.
.google.protobuf.Timestamp create_time = 5;
Returns |
Type |
Description |
Timestamp |
The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp when this model evaluation was created.
.google.protobuf.Timestamp create_time = 5;
getDefaultInstanceForType()
public ModelEvaluation getDefaultInstanceForType()
getDisplayName()
public String getDisplayName()
Output only. The value of
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
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;
Returns |
Type |
Description |
String |
The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Output only. The value of
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
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;
Returns |
Type |
Description |
ByteString |
The bytes for displayName.
|
getEvaluatedExampleCount()
public 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.
int32 evaluated_example_count = 6;
Returns |
Type |
Description |
int |
The evaluatedExampleCount.
|
getImageObjectDetectionEvaluationMetrics()
public ImageObjectDetectionEvaluationMetrics getImageObjectDetectionEvaluationMetrics()
Model evaluation metrics for image object detection.
.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;
getImageObjectDetectionEvaluationMetricsOrBuilder()
public ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder()
Model evaluation metrics for image object detection.
.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;
getMetricsCase()
public ModelEvaluation.MetricsCase getMetricsCase()
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;
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public 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;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<ModelEvaluation> getParserForType()
Overrides
getRegressionEvaluationMetrics()
public RegressionProto.RegressionEvaluationMetrics getRegressionEvaluationMetrics()
Model evaluation metrics for Tables regression.
Tables problem is considered a regression when the target column
has FLOAT64 DataType.
.google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24;
getRegressionEvaluationMetricsOrBuilder()
public RegressionProto.RegressionEvaluationMetricsOrBuilder getRegressionEvaluationMetricsOrBuilder()
Model evaluation metrics for Tables regression.
Tables problem is considered a regression when the target column
has FLOAT64 DataType.
.google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24;
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics()
Evaluation metrics for text extraction models.
.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;
public TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder()
Evaluation metrics for text extraction models.
.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;
getTextSentimentEvaluationMetrics()
public TextSentimentProto.TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics()
Evaluation metrics for text sentiment models.
.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;
getTextSentimentEvaluationMetricsOrBuilder()
public TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder()
Evaluation metrics for text sentiment models.
.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;
getTranslationEvaluationMetrics()
public TranslationEvaluationMetrics getTranslationEvaluationMetrics()
Model evaluation metrics for translation.
.google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;
getTranslationEvaluationMetricsOrBuilder()
public TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder()
Model evaluation metrics for translation.
.google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;
getVideoObjectTrackingEvaluationMetrics()
public VideoObjectTrackingEvaluationMetrics getVideoObjectTrackingEvaluationMetrics()
Model evaluation metrics for video object tracking.
.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14;
getVideoObjectTrackingEvaluationMetricsOrBuilder()
public VideoObjectTrackingEvaluationMetricsOrBuilder getVideoObjectTrackingEvaluationMetricsOrBuilder()
Model evaluation metrics for video object tracking.
.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14;
hasClassificationEvaluationMetrics()
public 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.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;
Returns |
Type |
Description |
boolean |
Whether the classificationEvaluationMetrics field is set.
|
hasCreateTime()
public boolean hasCreateTime()
Output only. Timestamp when this model evaluation was created.
.google.protobuf.Timestamp create_time = 5;
Returns |
Type |
Description |
boolean |
Whether the createTime field is set.
|
hasImageObjectDetectionEvaluationMetrics()
public boolean hasImageObjectDetectionEvaluationMetrics()
Model evaluation metrics for image object detection.
.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;
Returns |
Type |
Description |
boolean |
Whether the imageObjectDetectionEvaluationMetrics field is set.
|
hasRegressionEvaluationMetrics()
public boolean hasRegressionEvaluationMetrics()
Model evaluation metrics for Tables regression.
Tables problem is considered a regression when the target column
has FLOAT64 DataType.
.google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24;
Returns |
Type |
Description |
boolean |
Whether the regressionEvaluationMetrics field is set.
|
public boolean hasTextExtractionEvaluationMetrics()
Evaluation metrics for text extraction models.
.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;
Returns |
Type |
Description |
boolean |
Whether the textExtractionEvaluationMetrics field is set.
|
hasTextSentimentEvaluationMetrics()
public boolean hasTextSentimentEvaluationMetrics()
Evaluation metrics for text sentiment models.
.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;
Returns |
Type |
Description |
boolean |
Whether the textSentimentEvaluationMetrics field is set.
|
hasTranslationEvaluationMetrics()
public boolean hasTranslationEvaluationMetrics()
Model evaluation metrics for translation.
.google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;
Returns |
Type |
Description |
boolean |
Whether the translationEvaluationMetrics field is set.
|
hasVideoObjectTrackingEvaluationMetrics()
public boolean hasVideoObjectTrackingEvaluationMetrics()
Model evaluation metrics for video object tracking.
.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14;
Returns |
Type |
Description |
boolean |
Whether the videoObjectTrackingEvaluationMetrics field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ModelEvaluation.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ModelEvaluation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ModelEvaluation.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides