Class: Google::Apis::LanguageV2::XpsBoundingBoxMetricsEntryConfidenceMetricsEntry

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

Overview

Metrics for a single confidence threshold.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsBoundingBoxMetricsEntryConfidenceMetricsEntry

Returns a new instance of XpsBoundingBoxMetricsEntryConfidenceMetricsEntry.



1101
1102
1103
# File 'lib/google/apis/language_v2/classes.rb', line 1101

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

Instance Attribute Details

#confidence_thresholdFloat

The confidence threshold value used to compute the metrics. Corresponds to the JSON property confidenceThreshold

Returns:

  • (Float)


1084
1085
1086
# File 'lib/google/apis/language_v2/classes.rb', line 1084

def confidence_threshold
  @confidence_threshold
end

#f1_scoreFloat

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

Returns:

  • (Float)


1089
1090
1091
# File 'lib/google/apis/language_v2/classes.rb', line 1089

def f1_score
  @f1_score
end

#precisionFloat

Precision for the given confidence threshold. Corresponds to the JSON property precision

Returns:

  • (Float)


1094
1095
1096
# File 'lib/google/apis/language_v2/classes.rb', line 1094

def precision
  @precision
end

#recallFloat

Recall for the given confidence threshold. Corresponds to the JSON property recall

Returns:

  • (Float)


1099
1100
1101
# File 'lib/google/apis/language_v2/classes.rb', line 1099

def recall
  @recall
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1106
1107
1108
1109
1110
1111
# File 'lib/google/apis/language_v2/classes.rb', line 1106

def update!(**args)
  @confidence_threshold = args[:confidence_threshold] if args.key?(:confidence_threshold)
  @f1_score = args[:f1_score] if args.key?(:f1_score)
  @precision = args[:precision] if args.key?(:precision)
  @recall = args[:recall] if args.key?(:recall)
end