Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMetrics
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMetrics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/documentai_v1beta2/classes.rb,
lib/google/apis/documentai_v1beta2/representations.rb,
lib/google/apis/documentai_v1beta2/representations.rb
Overview
Evaluation metrics, either in aggregate or about a specific entity.
Instance Attribute Summary collapse
-
#f1_score ⇒ Float
The calculated f1 score.
-
#precision ⇒ Float
The calculated precision.
-
#recall ⇒ Float
The calculated recall.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiUiv1beta3EvaluationMetrics
constructor
A new instance of GoogleCloudDocumentaiUiv1beta3EvaluationMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiUiv1beta3EvaluationMetrics
Returns a new instance of GoogleCloudDocumentaiUiv1beta3EvaluationMetrics.
357 358 359 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 357 def initialize(**args) update!(**args) end |
Instance Attribute Details
#f1_score ⇒ Float
The calculated f1 score.
Corresponds to the JSON property f1Score
345 346 347 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 345 def f1_score @f1_score end |
#precision ⇒ Float
The calculated precision.
Corresponds to the JSON property precision
350 351 352 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 350 def precision @precision end |
#recall ⇒ Float
The calculated recall.
Corresponds to the JSON property recall
355 356 357 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 355 def recall @recall end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
362 363 364 365 366 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 362 def update!(**args) @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 |