public final class ClassificationEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 implements ClassificationEvaluationMetricsOrBuilder
Model evaluation metrics for classification problems. Note: For Video Classification this metrics only describe quality of the Video Classification predictions of "segment_classification" type.Protobuf type
google.cloud.automl.v1.ClassificationEvaluationMetrics| Modifier and Type | Class and Description |
|---|---|
static class |
ClassificationEvaluationMetrics.Builder
Model evaluation metrics for classification problems.
|
static class |
ClassificationEvaluationMetrics.ConfidenceMetricsEntry
Metrics for a single confidence threshold.
|
static interface |
ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder |
static class |
ClassificationEvaluationMetrics.ConfusionMatrix
Confusion matrix of the model running the classification.
|
static interface |
ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder |
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 |
AU_PRC_FIELD_NUMBER |
static int |
AU_ROC_FIELD_NUMBER |
static int |
CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER |
static int |
CONFUSION_MATRIX_FIELD_NUMBER |
static int |
LOG_LOSS_FIELD_NUMBER |
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 AU_PRC_FIELD_NUMBER
public static final int AU_ROC_FIELD_NUMBER
public static final int LOG_LOSS_FIELD_NUMBER
public static final int CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER
public static final int CONFUSION_MATRIX_FIELD_NUMBER
public static final int ANNOTATION_SPEC_ID_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 float getAuPrc()
Output only. The Area Under Precision-Recall Curve metric. Micro-averaged for the overall evaluation.
float au_prc = 1;getAuPrc in interface ClassificationEvaluationMetricsOrBuilderpublic float getAuRoc()
Output only. The Area Under Receiver Operating Characteristic curve metric. Micro-averaged for the overall evaluation.
float au_roc = 6;getAuRoc in interface ClassificationEvaluationMetricsOrBuilderpublic float getLogLoss()
Output only. The Log Loss metric.
float log_loss = 7;getLogLoss in interface ClassificationEvaluationMetricsOrBuilderpublic List<ClassificationEvaluationMetrics.ConfidenceMetricsEntry> getConfidenceMetricsEntryList()
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.
repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
getConfidenceMetricsEntryList in interface ClassificationEvaluationMetricsOrBuilderpublic List<? extends ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntryOrBuilderList()
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.
repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
getConfidenceMetricsEntryOrBuilderList in interface ClassificationEvaluationMetricsOrBuilderpublic int getConfidenceMetricsEntryCount()
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.
repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
getConfidenceMetricsEntryCount in interface ClassificationEvaluationMetricsOrBuilderpublic ClassificationEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntry(int index)
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.
repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
getConfidenceMetricsEntry in interface ClassificationEvaluationMetricsOrBuilderpublic ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntryOrBuilder(int index)
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.
repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
getConfidenceMetricsEntryOrBuilder in interface ClassificationEvaluationMetricsOrBuilderpublic boolean hasConfusionMatrix()
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.
.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4;
hasConfusionMatrix in interface ClassificationEvaluationMetricsOrBuilderpublic ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix()
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.
.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4;
getConfusionMatrix in interface ClassificationEvaluationMetricsOrBuilderpublic ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder()
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.
.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4;
getConfusionMatrixOrBuilder in interface ClassificationEvaluationMetricsOrBuilderpublic com.google.protobuf.ProtocolStringList getAnnotationSpecIdList()
Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;getAnnotationSpecIdList in interface ClassificationEvaluationMetricsOrBuilderpublic int getAnnotationSpecIdCount()
Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;getAnnotationSpecIdCount in interface ClassificationEvaluationMetricsOrBuilderpublic String getAnnotationSpecId(int index)
Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;getAnnotationSpecId in interface ClassificationEvaluationMetricsOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index)
Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;getAnnotationSpecIdBytes in interface ClassificationEvaluationMetricsOrBuilderindex - The index of the value to return.public 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 ClassificationEvaluationMetrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics parseFrom(InputStream input) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ClassificationEvaluationMetrics.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ClassificationEvaluationMetrics.Builder newBuilder()
public static ClassificationEvaluationMetrics.Builder newBuilder(ClassificationEvaluationMetrics prototype)
public ClassificationEvaluationMetrics.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ClassificationEvaluationMetrics.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ClassificationEvaluationMetrics getDefaultInstance()
public static com.google.protobuf.Parser<ClassificationEvaluationMetrics> parser()
public com.google.protobuf.Parser<ClassificationEvaluationMetrics> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ClassificationEvaluationMetrics getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.