Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datalabeling_v1beta1/classes.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry

Returns a new instance of GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry.



1377
1378
1379
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1377

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#confidence_thresholdFloat

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) threshold for the context of this point on the PR curve. Corresponds to the JSON property confidenceThreshold

Returns:

  • (Float)


1330
1331
1332
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1330

def confidence_threshold
  @confidence_threshold
end

#f1_scoreFloat

Harmonic mean of recall and precision. Corresponds to the JSON property f1Score

Returns:

  • (Float)


1335
1336
1337
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1335

def f1_score
  @f1_score
end

#f1_score_at1Float

The harmonic mean of recall_at1 and precision_at1. Corresponds to the JSON property f1ScoreAt1

Returns:

  • (Float)


1340
1341
1342
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1340

def f1_score_at1
  @f1_score_at1
end

#f1_score_at5Float

The harmonic mean of recall_at5 and precision_at5. Corresponds to the JSON property f1ScoreAt5

Returns:

  • (Float)


1345
1346
1347
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1345

def f1_score_at5
  @f1_score_at5
end

#precisionFloat

Precision value. Corresponds to the JSON property precision

Returns:

  • (Float)


1350
1351
1352
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1350

def precision
  @precision
end

#precision_at1Float

Precision value for entries with label that has highest score. Corresponds to the JSON property precisionAt1

Returns:

  • (Float)


1355
1356
1357
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1355

def precision_at1
  @precision_at1
end

#precision_at5Float

Precision value for entries with label that has highest 5 scores. Corresponds to the JSON property precisionAt5

Returns:

  • (Float)


1360
1361
1362
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1360

def precision_at5
  @precision_at5
end

#recallFloat

Recall value. Corresponds to the JSON property recall

Returns:

  • (Float)


1365
1366
1367
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1365

def recall
  @recall
end

#recall_at1Float

Recall value for entries with label that has highest score. Corresponds to the JSON property recallAt1

Returns:

  • (Float)


1370
1371
1372
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1370

def recall_at1
  @recall_at1
end

#recall_at5Float

Recall value for entries with label that has highest 5 scores. Corresponds to the JSON property recallAt5

Returns:

  • (Float)


1375
1376
1377
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1375

def recall_at5
  @recall_at5
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
# File 'generated/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