public static final class ClassificationEvaluationMetrics.ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 implements ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder
Metrics for a single confidence threshold.Protobuf type
google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry| Modifier and Type | Class and Description |
|---|---|
static class |
ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder
Metrics for a single confidence threshold.
|
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 |
CONFIDENCE_THRESHOLD_FIELD_NUMBER |
static int |
F1_SCORE_AT1_FIELD_NUMBER |
static int |
F1_SCORE_FIELD_NUMBER |
static int |
FALSE_NEGATIVE_COUNT_FIELD_NUMBER |
static int |
FALSE_POSITIVE_COUNT_FIELD_NUMBER |
static int |
FALSE_POSITIVE_RATE_AT1_FIELD_NUMBER |
static int |
FALSE_POSITIVE_RATE_FIELD_NUMBER |
static int |
POSITION_THRESHOLD_FIELD_NUMBER |
static int |
PRECISION_AT1_FIELD_NUMBER |
static int |
PRECISION_FIELD_NUMBER |
static int |
RECALL_AT1_FIELD_NUMBER |
static int |
RECALL_FIELD_NUMBER |
static int |
TRUE_NEGATIVE_COUNT_FIELD_NUMBER |
static int |
TRUE_POSITIVE_COUNT_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 CONFIDENCE_THRESHOLD_FIELD_NUMBER
public static final int POSITION_THRESHOLD_FIELD_NUMBER
public static final int RECALL_FIELD_NUMBER
public static final int PRECISION_FIELD_NUMBER
public static final int FALSE_POSITIVE_RATE_FIELD_NUMBER
public static final int F1_SCORE_FIELD_NUMBER
public static final int RECALL_AT1_FIELD_NUMBER
public static final int PRECISION_AT1_FIELD_NUMBER
public static final int FALSE_POSITIVE_RATE_AT1_FIELD_NUMBER
public static final int F1_SCORE_AT1_FIELD_NUMBER
public static final int TRUE_POSITIVE_COUNT_FIELD_NUMBER
public static final int FALSE_POSITIVE_COUNT_FIELD_NUMBER
public static final int FALSE_NEGATIVE_COUNT_FIELD_NUMBER
public static final int TRUE_NEGATIVE_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 float getConfidenceThreshold()
Output only. Metrics are computed with an assumption that the model never returns predictions with score lower than this value.
float confidence_threshold = 1;getConfidenceThreshold in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic int getPositionThreshold()
Output only. Metrics are computed with an assumption that the model always returns at most this many predictions (ordered by their score, descendingly), but they all still need to meet the confidence_threshold.
int32 position_threshold = 14;getPositionThreshold in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic float getRecall()
Output only. Recall (True Positive Rate) for the given confidence threshold.
float recall = 2;getRecall in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic float getPrecision()
Output only. Precision for the given confidence threshold.
float precision = 3;getPrecision in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic float getFalsePositiveRate()
Output only. False Positive Rate for the given confidence threshold.
float false_positive_rate = 8;getFalsePositiveRate in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic float getF1Score()
Output only. The harmonic mean of recall and precision.
float f1_score = 4;getF1Score in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic float getRecallAt1()
Output only. The Recall (True Positive Rate) when only considering the label that has the highest prediction score and not below the confidence threshold for each example.
float recall_at1 = 5;getRecallAt1 in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic float getPrecisionAt1()
Output only. The precision when only considering the label that has the highest prediction score and not below the confidence threshold for each example.
float precision_at1 = 6;getPrecisionAt1 in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic float getFalsePositiveRateAt1()
Output only. The False Positive Rate when only considering the label that has the highest prediction score and not below the confidence threshold for each example.
float false_positive_rate_at1 = 9;getFalsePositiveRateAt1 in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic float getF1ScoreAt1()
Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
float f1_score_at1 = 7;getF1ScoreAt1 in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic long getTruePositiveCount()
Output only. The number of model created labels that match a ground truth label.
int64 true_positive_count = 10;getTruePositiveCount in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic long getFalsePositiveCount()
Output only. The number of model created labels that do not match a ground truth label.
int64 false_positive_count = 11;getFalsePositiveCount in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic long getFalseNegativeCount()
Output only. The number of ground truth labels that are not matched by a model created label.
int64 false_negative_count = 12;getFalseNegativeCount in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic long getTrueNegativeCount()
Output only. The number of labels that were not created by the model, but if they would, they would not match a ground truth label.
int64 true_negative_count = 13;getTrueNegativeCount in interface ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilderpublic 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.ConfidenceMetricsEntry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(InputStream input) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics.ConfidenceMetricsEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder newBuilder()
public static ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder newBuilder(ClassificationEvaluationMetrics.ConfidenceMetricsEntry prototype)
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ClassificationEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstance()
public static com.google.protobuf.Parser<ClassificationEvaluationMetrics.ConfidenceMetricsEntry> parser()
public com.google.protobuf.Parser<ClassificationEvaluationMetrics.ConfidenceMetricsEntry> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ClassificationEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.