Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMetrics

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_scoreFloat

The calculated f1 score. Corresponds to the JSON property f1Score

Returns:

  • (Float)


345
346
347
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 345

def f1_score
  @f1_score
end

#precisionFloat

The calculated precision. Corresponds to the JSON property precision

Returns:

  • (Float)


350
351
352
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 350

def precision
  @precision
end

#recallFloat

The calculated recall. Corresponds to the JSON property recall

Returns:

  • (Float)


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