You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Comprehend::Types::ClassifierEvaluationMetrics

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb

Overview

Describes the result metrics for the test data associated with an documentation classifier.

Instance Attribute Summary collapse

Instance Attribute Details

#accuracyFloat

The fraction of the labels that were correct recognized. It is computed by dividing the number of labels in the test documents that were correctly recognized by the total number of labels in the test documents.

Returns:

  • (Float)


436
437
438
439
440
441
442
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 436

class ClassifierEvaluationMetrics < Struct.new(
  :accuracy,
  :precision,
  :recall,
  :f1_score)
  include Aws::Structure
end

#f1_scoreFloat

A measure of how accurate the classifier results are for the test data. It is derived from the Precision and Recall values. The F1Score is the harmonic average of the two scores. The highest score is 1, and the worst score is 0.

Returns:

  • (Float)


436
437
438
439
440
441
442
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 436

class ClassifierEvaluationMetrics < Struct.new(
  :accuracy,
  :precision,
  :recall,
  :f1_score)
  include Aws::Structure
end

#precisionFloat

A measure of the usefulness of the classifier results in the test data. High precision means that the classifier returned substantially more relevant results than irrelevant ones.

Returns:

  • (Float)


436
437
438
439
440
441
442
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 436

class ClassifierEvaluationMetrics < Struct.new(
  :accuracy,
  :precision,
  :recall,
  :f1_score)
  include Aws::Structure
end

#recallFloat

A measure of how complete the classifier results are for the test data. High recall means that the classifier returned most of the relevant results.

Returns:

  • (Float)


436
437
438
439
440
441
442
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 436

class ClassifierEvaluationMetrics < Struct.new(
  :accuracy,
  :precision,
  :recall,
  :f1_score)
  include Aws::Structure
end