Class PrCurve.ConfidenceMetricsEntry

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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.GeneratedMessage implements PrCurve.ConfidenceMetricsEntryOrBuilder
Protobuf type google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry
See Also:
  • Field Details

    • CONFIDENCE_THRESHOLD_FIELD_NUMBER

      public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER
      See Also:
    • RECALL_FIELD_NUMBER

      public static final int RECALL_FIELD_NUMBER
      See Also:
    • PRECISION_FIELD_NUMBER

      public static final int PRECISION_FIELD_NUMBER
      See Also:
    • F1_SCORE_FIELD_NUMBER

      public static final int F1_SCORE_FIELD_NUMBER
      See Also:
    • RECALL_AT1_FIELD_NUMBER

      public static final int RECALL_AT1_FIELD_NUMBER
      See Also:
    • PRECISION_AT1_FIELD_NUMBER

      public static final int PRECISION_AT1_FIELD_NUMBER
      See Also:
    • F1_SCORE_AT1_FIELD_NUMBER

      public static final int F1_SCORE_AT1_FIELD_NUMBER
      See Also:
    • RECALL_AT5_FIELD_NUMBER

      public static final int RECALL_AT5_FIELD_NUMBER
      See Also:
    • PRECISION_AT5_FIELD_NUMBER

      public static final int PRECISION_AT5_FIELD_NUMBER
      See Also:
    • F1_SCORE_AT5_FIELD_NUMBER

      public static final int F1_SCORE_AT5_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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 interface PrCurve.ConfidenceMetricsEntryOrBuilder
      Returns:
      The confidenceThreshold.
    • getRecall

      public float getRecall()
       Recall value.
       
      float recall = 2;
      Specified by:
      getRecall in interface PrCurve.ConfidenceMetricsEntryOrBuilder
      Returns:
      The recall.
    • getPrecision

      public float getPrecision()
       Precision value.
       
      float precision = 3;
      Specified by:
      getPrecision in interface PrCurve.ConfidenceMetricsEntryOrBuilder
      Returns:
      The precision.
    • getF1Score

      public float getF1Score()
       Harmonic mean of recall and precision.
       
      float f1_score = 4;
      Specified by:
      getF1Score in interface PrCurve.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 interface PrCurve.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 interface PrCurve.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 interface PrCurve.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 interface PrCurve.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 interface PrCurve.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 interface PrCurve.ConfidenceMetricsEntryOrBuilder
      Returns:
      The f1ScoreAt5.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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 interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static PrCurve.ConfidenceMetricsEntry.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected PrCurve.ConfidenceMetricsEntry.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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 interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public PrCurve.ConfidenceMetricsEntry getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder