class Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationMetrics

Evaluation metrics, either in aggregate or about a specific entity.

Attributes

f1_score[RW]

The calculated f1 score. Corresponds to the JSON property `f1Score` @return [Float]

false_negatives_count[RW]

The amount of false negatives. Corresponds to the JSON property `falseNegativesCount` @return [Fixnum]

false_positives_count[RW]

The amount of false positives. Corresponds to the JSON property `falsePositivesCount` @return [Fixnum]

ground_truth_occurrences_count[RW]

The amount of occurrences in ground truth documents. Corresponds to the JSON property `groundTruthOccurrencesCount` @return [Fixnum]

precision[RW]

The calculated precision. Corresponds to the JSON property `precision` @return [Float]

predicted_occurrences_count[RW]

The amount of occurrences in predicted documents. Corresponds to the JSON property `predictedOccurrencesCount` @return [Fixnum]

recall[RW]

The calculated recall. Corresponds to the JSON property `recall` @return [Float]

total_documents_count[RW]

The amount of documents that had an occurrence of this label. Corresponds to the JSON property `totalDocumentsCount` @return [Fixnum]

true_positives_count[RW]

The amount of true positives. Corresponds to the JSON property `truePositivesCount` @return [Fixnum]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/documentai_v1beta3/classes.rb, line 6528
def update!(**args)
  @f1_score = args[:f1_score] if args.key?(:f1_score)
  @false_negatives_count = args[:false_negatives_count] if args.key?(:false_negatives_count)
  @false_positives_count = args[:false_positives_count] if args.key?(:false_positives_count)
  @ground_truth_occurrences_count = args[:ground_truth_occurrences_count] if args.key?(:ground_truth_occurrences_count)
  @precision = args[:precision] if args.key?(:precision)
  @predicted_occurrences_count = args[:predicted_occurrences_count] if args.key?(:predicted_occurrences_count)
  @recall = args[:recall] if args.key?(:recall)
  @total_documents_count = args[:total_documents_count] if args.key?(:total_documents_count)
  @true_positives_count = args[:true_positives_count] if args.key?(:true_positives_count)
end