Class PrCurve.ConfidenceMetricsEntry.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PrCurve.ConfidenceMetricsEntry.Builder>
com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder
All Implemented Interfaces:
PrCurve.ConfidenceMetricsEntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PrCurve.ConfidenceMetricsEntry

public static final class PrCurve.ConfidenceMetricsEntry.Builder extends com.google.protobuf.GeneratedMessage.Builder<PrCurve.ConfidenceMetricsEntry.Builder> implements PrCurve.ConfidenceMetricsEntryOrBuilder
Protobuf type google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry
  • 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.Builder<PrCurve.ConfidenceMetricsEntry.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PrCurve.ConfidenceMetricsEntry.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PrCurve.ConfidenceMetricsEntry.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PrCurve.ConfidenceMetricsEntry buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PrCurve.ConfidenceMetricsEntry.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PrCurve.ConfidenceMetricsEntry.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PrCurve.ConfidenceMetricsEntry.Builder>
    • mergeFrom

      public PrCurve.ConfidenceMetricsEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PrCurve.ConfidenceMetricsEntry.Builder>
      Throws:
      IOException
    • 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.
    • setConfidenceThreshold

      public PrCurve.ConfidenceMetricsEntry.Builder setConfidenceThreshold(float value)
       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;
      Parameters:
      value - The confidenceThreshold to set.
      Returns:
      This builder for chaining.
    • clearConfidenceThreshold

      public PrCurve.ConfidenceMetricsEntry.Builder clearConfidenceThreshold()
       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;
      Returns:
      This builder for chaining.
    • getRecall

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

      public PrCurve.ConfidenceMetricsEntry.Builder setRecall(float value)
       Recall value.
       
      float recall = 2;
      Parameters:
      value - The recall to set.
      Returns:
      This builder for chaining.
    • clearRecall

       Recall value.
       
      float recall = 2;
      Returns:
      This builder for chaining.
    • getPrecision

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

      public PrCurve.ConfidenceMetricsEntry.Builder setPrecision(float value)
       Precision value.
       
      float precision = 3;
      Parameters:
      value - The precision to set.
      Returns:
      This builder for chaining.
    • clearPrecision

      public PrCurve.ConfidenceMetricsEntry.Builder clearPrecision()
       Precision value.
       
      float precision = 3;
      Returns:
      This builder for chaining.
    • getF1Score

      public float getF1Score()
       Harmonic mean of recall and precision.
       
      float f1_score = 4;
      Specified by:
      getF1Score in interface PrCurve.ConfidenceMetricsEntryOrBuilder
      Returns:
      The f1Score.
    • setF1Score

      public PrCurve.ConfidenceMetricsEntry.Builder setF1Score(float value)
       Harmonic mean of recall and precision.
       
      float f1_score = 4;
      Parameters:
      value - The f1Score to set.
      Returns:
      This builder for chaining.
    • clearF1Score

       Harmonic mean of recall and precision.
       
      float f1_score = 4;
      Returns:
      This builder for chaining.
    • 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.
    • setRecallAt1

      public PrCurve.ConfidenceMetricsEntry.Builder setRecallAt1(float value)
       Recall value for entries with label that has highest score.
       
      float recall_at1 = 5;
      Parameters:
      value - The recallAt1 to set.
      Returns:
      This builder for chaining.
    • clearRecallAt1

      public PrCurve.ConfidenceMetricsEntry.Builder clearRecallAt1()
       Recall value for entries with label that has highest score.
       
      float recall_at1 = 5;
      Returns:
      This builder for chaining.
    • 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.
    • setPrecisionAt1

      public PrCurve.ConfidenceMetricsEntry.Builder setPrecisionAt1(float value)
       Precision value for entries with label that has highest score.
       
      float precision_at1 = 6;
      Parameters:
      value - The precisionAt1 to set.
      Returns:
      This builder for chaining.
    • clearPrecisionAt1

      public PrCurve.ConfidenceMetricsEntry.Builder clearPrecisionAt1()
       Precision value for entries with label that has highest score.
       
      float precision_at1 = 6;
      Returns:
      This builder for chaining.
    • 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.
    • setF1ScoreAt1

      public PrCurve.ConfidenceMetricsEntry.Builder setF1ScoreAt1(float value)
       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;
      Parameters:
      value - The f1ScoreAt1 to set.
      Returns:
      This builder for chaining.
    • clearF1ScoreAt1

      public PrCurve.ConfidenceMetricsEntry.Builder clearF1ScoreAt1()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setRecallAt5

      public PrCurve.ConfidenceMetricsEntry.Builder setRecallAt5(float value)
       Recall value for entries with label that has highest 5 scores.
       
      float recall_at5 = 8;
      Parameters:
      value - The recallAt5 to set.
      Returns:
      This builder for chaining.
    • clearRecallAt5

      public PrCurve.ConfidenceMetricsEntry.Builder clearRecallAt5()
       Recall value for entries with label that has highest 5 scores.
       
      float recall_at5 = 8;
      Returns:
      This builder for chaining.
    • 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.
    • setPrecisionAt5

      public PrCurve.ConfidenceMetricsEntry.Builder setPrecisionAt5(float value)
       Precision value for entries with label that has highest 5 scores.
       
      float precision_at5 = 9;
      Parameters:
      value - The precisionAt5 to set.
      Returns:
      This builder for chaining.
    • clearPrecisionAt5

      public PrCurve.ConfidenceMetricsEntry.Builder clearPrecisionAt5()
       Precision value for entries with label that has highest 5 scores.
       
      float precision_at5 = 9;
      Returns:
      This builder for chaining.
    • 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.
    • setF1ScoreAt5

      public PrCurve.ConfidenceMetricsEntry.Builder setF1ScoreAt5(float value)
       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;
      Parameters:
      value - The f1ScoreAt5 to set.
      Returns:
      This builder for chaining.
    • clearF1ScoreAt5

      public PrCurve.ConfidenceMetricsEntry.Builder clearF1ScoreAt5()
       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;
      Returns:
      This builder for chaining.