class Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry

Attributes

confidence_threshold[RW]

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. Corresponds to the JSON property `confidenceThreshold` @return [Float]

f1_score[RW]

Harmonic mean of recall and precision. Corresponds to the JSON property `f1Score` @return [Float]

f1_score_at1[RW]

The harmonic mean of recall_at1 and precision_at1. Corresponds to the JSON property `f1ScoreAt1` @return [Float]

f1_score_at5[RW]

The harmonic mean of recall_at5 and precision_at5. Corresponds to the JSON property `f1ScoreAt5` @return [Float]

precision[RW]

Precision value. Corresponds to the JSON property `precision` @return [Float]

precision_at1[RW]

Precision value for entries with label that has highest score. Corresponds to the JSON property `precisionAt1` @return [Float]

precision_at5[RW]

Precision value for entries with label that has highest 5 scores. Corresponds to the JSON property `precisionAt5` @return [Float]

recall[RW]

Recall value. Corresponds to the JSON property `recall` @return [Float]

recall_at1[RW]

Recall value for entries with label that has highest score. Corresponds to the JSON property `recallAt1` @return [Float]

recall_at5[RW]

Recall value for entries with label that has highest 5 scores. Corresponds to the JSON property `recallAt5` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 1377
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 1382
def update!(**args)
  @confidence_threshold = args[:confidence_threshold] if args.key?(:confidence_threshold)
  @f1_score = args[:f1_score] if args.key?(:f1_score)
  @f1_score_at1 = args[:f1_score_at1] if args.key?(:f1_score_at1)
  @f1_score_at5 = args[:f1_score_at5] if args.key?(:f1_score_at5)
  @precision = args[:precision] if args.key?(:precision)
  @precision_at1 = args[:precision_at1] if args.key?(:precision_at1)
  @precision_at5 = args[:precision_at5] if args.key?(:precision_at5)
  @recall = args[:recall] if args.key?(:recall)
  @recall_at1 = args[:recall_at1] if args.key?(:recall_at1)
  @recall_at5 = args[:recall_at5] if args.key?(:recall_at5)
end