Class PrCurve.ConfidenceMetricsEntry
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry
-
- All Implemented Interfaces:
PrCurve.ConfidenceMetricsEntryOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- PrCurve
public static final class PrCurve.ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 implements PrCurve.ConfidenceMetricsEntryOrBuilder
Protobuf typegoogle.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrCurve.ConfidenceMetricsEntry.BuilderProtobuf typegoogle.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intCONFIDENCE_THRESHOLD_FIELD_NUMBERstatic intF1_SCORE_AT1_FIELD_NUMBERstatic intF1_SCORE_AT5_FIELD_NUMBERstatic intF1_SCORE_FIELD_NUMBERstatic intPRECISION_AT1_FIELD_NUMBERstatic intPRECISION_AT5_FIELD_NUMBERstatic intPRECISION_FIELD_NUMBERstatic intRECALL_AT1_FIELD_NUMBERstatic intRECALL_AT5_FIELD_NUMBERstatic intRECALL_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)floatgetConfidenceThreshold()Threshold used for this entry.static PrCurve.ConfidenceMetricsEntrygetDefaultInstance()PrCurve.ConfidenceMetricsEntrygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()floatgetF1Score()Harmonic mean of recall and precision.floatgetF1ScoreAt1()The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].floatgetF1ScoreAt5()The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].com.google.protobuf.Parser<PrCurve.ConfidenceMetricsEntry>getParserForType()floatgetPrecision()Precision value.floatgetPrecisionAt1()Precision value for entries with label that has highest score.floatgetPrecisionAt5()Precision value for entries with label that has highest 5 scores.floatgetRecall()Recall value.floatgetRecallAt1()Recall value for entries with label that has highest score.floatgetRecallAt5()Recall value for entries with label that has highest 5 scores.intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static PrCurve.ConfidenceMetricsEntry.BuildernewBuilder()static PrCurve.ConfidenceMetricsEntry.BuildernewBuilder(PrCurve.ConfidenceMetricsEntry prototype)PrCurve.ConfidenceMetricsEntry.BuildernewBuilderForType()protected PrCurve.ConfidenceMetricsEntry.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static PrCurve.ConfidenceMetricsEntryparseDelimitedFrom(InputStream input)static PrCurve.ConfidenceMetricsEntryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PrCurve.ConfidenceMetricsEntryparseFrom(byte[] data)static PrCurve.ConfidenceMetricsEntryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PrCurve.ConfidenceMetricsEntryparseFrom(com.google.protobuf.ByteString data)static PrCurve.ConfidenceMetricsEntryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PrCurve.ConfidenceMetricsEntryparseFrom(com.google.protobuf.CodedInputStream input)static PrCurve.ConfidenceMetricsEntryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PrCurve.ConfidenceMetricsEntryparseFrom(InputStream input)static PrCurve.ConfidenceMetricsEntryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PrCurve.ConfidenceMetricsEntryparseFrom(ByteBuffer data)static PrCurve.ConfidenceMetricsEntryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<PrCurve.ConfidenceMetricsEntry>parser()PrCurve.ConfidenceMetricsEntry.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CONFIDENCE_THRESHOLD_FIELD_NUMBER
public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECALL_FIELD_NUMBER
public static final int RECALL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRECISION_FIELD_NUMBER
public static final int PRECISION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
F1_SCORE_FIELD_NUMBER
public static final int F1_SCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECALL_AT1_FIELD_NUMBER
public static final int RECALL_AT1_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRECISION_AT1_FIELD_NUMBER
public static final int PRECISION_AT1_FIELD_NUMBER
- See Also:
- Constant Field Values
-
F1_SCORE_AT1_FIELD_NUMBER
public static final int F1_SCORE_AT1_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECALL_AT5_FIELD_NUMBER
public static final int RECALL_AT5_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRECISION_AT5_FIELD_NUMBER
public static final int PRECISION_AT5_FIELD_NUMBER
- See Also:
- Constant Field Values
-
F1_SCORE_AT5_FIELD_NUMBER
public static final int F1_SCORE_AT5_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getConfidenceThreshold
public float getConfidenceThreshold()
Threshold used for this entry. For classification tasks, this is a classification threshold: a predicted label is categorized as positive or negative (in the context of this point on the PR curve) based on whether the label's score meets this threshold. For image object detection (bounding box) tasks, this is the [intersection-over-union (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) threshold for the context of this point on the PR curve.
float confidence_threshold = 1;- Specified by:
getConfidenceThresholdin interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The confidenceThreshold.
-
getRecall
public float getRecall()
Recall value.
float recall = 2;- Specified by:
getRecallin interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The recall.
-
getPrecision
public float getPrecision()
Precision value.
float precision = 3;- Specified by:
getPrecisionin interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The precision.
-
getF1Score
public float getF1Score()
Harmonic mean of recall and precision.
float f1_score = 4;- Specified by:
getF1Scorein interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The f1Score.
-
getRecallAt1
public float getRecallAt1()
Recall value for entries with label that has highest score.
float recall_at1 = 5;- Specified by:
getRecallAt1in interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The recallAt1.
-
getPrecisionAt1
public float getPrecisionAt1()
Precision value for entries with label that has highest score.
float precision_at1 = 6;- Specified by:
getPrecisionAt1in interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The precisionAt1.
-
getF1ScoreAt1
public float getF1ScoreAt1()
The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
float f1_score_at1 = 7;- Specified by:
getF1ScoreAt1in interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The f1ScoreAt1.
-
getRecallAt5
public float getRecallAt5()
Recall value for entries with label that has highest 5 scores.
float recall_at5 = 8;- Specified by:
getRecallAt5in interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The recallAt5.
-
getPrecisionAt5
public float getPrecisionAt5()
Precision value for entries with label that has highest 5 scores.
float precision_at5 = 9;- Specified by:
getPrecisionAt5in interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The precisionAt5.
-
getF1ScoreAt5
public float getF1ScoreAt5()
The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
float f1_score_at5 = 10;- Specified by:
getF1ScoreAt5in interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The f1ScoreAt5.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PrCurve.ConfidenceMetricsEntry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PrCurve.ConfidenceMetricsEntry parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PrCurve.ConfidenceMetricsEntry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PrCurve.ConfidenceMetricsEntry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PrCurve.ConfidenceMetricsEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PrCurve.ConfidenceMetricsEntry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PrCurve.ConfidenceMetricsEntry parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PrCurve.ConfidenceMetricsEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PrCurve.ConfidenceMetricsEntry parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PrCurve.ConfidenceMetricsEntry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static PrCurve.ConfidenceMetricsEntry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PrCurve.ConfidenceMetricsEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public PrCurve.ConfidenceMetricsEntry.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PrCurve.ConfidenceMetricsEntry.Builder newBuilder()
-
newBuilder
public static PrCurve.ConfidenceMetricsEntry.Builder newBuilder(PrCurve.ConfidenceMetricsEntry prototype)
-
toBuilder
public PrCurve.ConfidenceMetricsEntry.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PrCurve.ConfidenceMetricsEntry.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static PrCurve.ConfidenceMetricsEntry getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PrCurve.ConfidenceMetricsEntry> parser()
-
getParserForType
public com.google.protobuf.Parser<PrCurve.ConfidenceMetricsEntry> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PrCurve.ConfidenceMetricsEntry getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-