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 class
PrCurve.ConfidenceMetricsEntry.Builder
Protobuf 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 int
CONFIDENCE_THRESHOLD_FIELD_NUMBER
static int
F1_SCORE_AT1_FIELD_NUMBER
static int
F1_SCORE_AT5_FIELD_NUMBER
static int
F1_SCORE_FIELD_NUMBER
static int
PRECISION_AT1_FIELD_NUMBER
static int
PRECISION_AT5_FIELD_NUMBER
static int
PRECISION_FIELD_NUMBER
static int
RECALL_AT1_FIELD_NUMBER
static int
RECALL_AT5_FIELD_NUMBER
static int
RECALL_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
float
getConfidenceThreshold()
Threshold used for this entry.static PrCurve.ConfidenceMetricsEntry
getDefaultInstance()
PrCurve.ConfidenceMetricsEntry
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
float
getF1Score()
Harmonic mean of recall and precision.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
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].com.google.protobuf.Parser<PrCurve.ConfidenceMetricsEntry>
getParserForType()
float
getPrecision()
Precision value.float
getPrecisionAt1()
Precision value for entries with label that has highest score.float
getPrecisionAt5()
Precision value for entries with label that has highest 5 scores.float
getRecall()
Recall value.float
getRecallAt1()
Recall value for entries with label that has highest score.float
getRecallAt5()
Recall value for entries with label that has highest 5 scores.int
getSerializedSize()
int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static PrCurve.ConfidenceMetricsEntry.Builder
newBuilder()
static PrCurve.ConfidenceMetricsEntry.Builder
newBuilder(PrCurve.ConfidenceMetricsEntry prototype)
PrCurve.ConfidenceMetricsEntry.Builder
newBuilderForType()
protected PrCurve.ConfidenceMetricsEntry.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static PrCurve.ConfidenceMetricsEntry
parseDelimitedFrom(InputStream input)
static PrCurve.ConfidenceMetricsEntry
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PrCurve.ConfidenceMetricsEntry
parseFrom(byte[] data)
static PrCurve.ConfidenceMetricsEntry
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PrCurve.ConfidenceMetricsEntry
parseFrom(com.google.protobuf.ByteString data)
static PrCurve.ConfidenceMetricsEntry
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PrCurve.ConfidenceMetricsEntry
parseFrom(com.google.protobuf.CodedInputStream input)
static PrCurve.ConfidenceMetricsEntry
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PrCurve.ConfidenceMetricsEntry
parseFrom(InputStream input)
static PrCurve.ConfidenceMetricsEntry
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PrCurve.ConfidenceMetricsEntry
parseFrom(ByteBuffer data)
static PrCurve.ConfidenceMetricsEntry
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<PrCurve.ConfidenceMetricsEntry>
parser()
PrCurve.ConfidenceMetricsEntry.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getConfidenceThreshold
in interfacePrCurve.ConfidenceMetricsEntryOrBuilder
- Returns:
- The confidenceThreshold.
-
getRecall
public float getRecall()
Recall value.
float recall = 2;
- Specified by:
getRecall
in interfacePrCurve.ConfidenceMetricsEntryOrBuilder
- Returns:
- The recall.
-
getPrecision
public float getPrecision()
Precision value.
float precision = 3;
- Specified by:
getPrecision
in interfacePrCurve.ConfidenceMetricsEntryOrBuilder
- Returns:
- The precision.
-
getF1Score
public float getF1Score()
Harmonic mean of recall and precision.
float f1_score = 4;
- Specified by:
getF1Score
in 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:
getRecallAt1
in 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:
getPrecisionAt1
in 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:
getF1ScoreAt1
in 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:
getRecallAt5
in 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:
getPrecisionAt5
in 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:
getF1ScoreAt5
in interfacePrCurve.ConfidenceMetricsEntryOrBuilder
- Returns:
- The f1ScoreAt5.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PrCurve.ConfidenceMetricsEntry.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PrCurve.ConfidenceMetricsEntry getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-