Class PrCurve.ConfidenceMetricsEntry.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public PrCurve.ConfidenceMetricsEntry 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PrCurve.ConfidenceMetricsEntry.Builder>
      • 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.
      • setRecall

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

        public PrCurve.ConfidenceMetricsEntry.Builder setPrecision​(float value)
         Precision value.
         
        float precision = 3;
        Parameters:
        value - The precision to set.
        Returns:
        This builder for chaining.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.