Class: Google::Apis::LanguageV2::XpsTextExtractionEvaluationMetrics
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsTextExtractionEvaluationMetrics
- 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
Instance Attribute Summary collapse
-
#best_f1_confidence_metrics ⇒ Google::Apis::LanguageV2::XpsConfidenceMetricsEntry
ConfidenceMetricsEntry includes generic precision, recall, f1 score etc.
-
#confidence_metrics_entries ⇒ Array<Google::Apis::LanguageV2::XpsConfidenceMetricsEntry>
If the enclosing EvaluationMetrics.label is empty, confidence_metrics_entries is an evaluation of the entire model across all labels.
-
#confusion_matrix ⇒ Google::Apis::LanguageV2::XpsConfusionMatrix
Confusion matrix of the model running the classification.
-
#per_label_confidence_metrics ⇒ Hash<String,Google::Apis::LanguageV2::XpsConfidenceMetricsEntry>
Only recall, precision, and f1_score will be set.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsTextExtractionEvaluationMetrics
constructor
A new instance of XpsTextExtractionEvaluationMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsTextExtractionEvaluationMetrics
Returns a new instance of XpsTextExtractionEvaluationMetrics.
4123 4124 4125 |
# File 'lib/google/apis/language_v2/classes.rb', line 4123 def initialize(**args) update!(**args) end |
Instance Attribute Details
#best_f1_confidence_metrics ⇒ Google::Apis::LanguageV2::XpsConfidenceMetricsEntry
ConfidenceMetricsEntry includes generic precision, recall, f1 score etc. Next
tag: 16.
Corresponds to the JSON property bestF1ConfidenceMetrics
4103 4104 4105 |
# File 'lib/google/apis/language_v2/classes.rb', line 4103 def best_f1_confidence_metrics @best_f1_confidence_metrics end |
#confidence_metrics_entries ⇒ Array<Google::Apis::LanguageV2::XpsConfidenceMetricsEntry>
If the enclosing EvaluationMetrics.label is empty, confidence_metrics_entries
is an evaluation of the entire model across all labels. If the enclosing
EvaluationMetrics.label is set, confidence_metrics_entries applies to that
label.
Corresponds to the JSON property confidenceMetricsEntries
4111 4112 4113 |
# File 'lib/google/apis/language_v2/classes.rb', line 4111 def confidence_metrics_entries @confidence_metrics_entries end |
#confusion_matrix ⇒ Google::Apis::LanguageV2::XpsConfusionMatrix
Confusion matrix of the model running the classification.
Corresponds to the JSON property confusionMatrix
4116 4117 4118 |
# File 'lib/google/apis/language_v2/classes.rb', line 4116 def confusion_matrix @confusion_matrix end |
#per_label_confidence_metrics ⇒ Hash<String,Google::Apis::LanguageV2::XpsConfidenceMetricsEntry>
Only recall, precision, and f1_score will be set.
Corresponds to the JSON property perLabelConfidenceMetrics
4121 4122 4123 |
# File 'lib/google/apis/language_v2/classes.rb', line 4121 def per_label_confidence_metrics @per_label_confidence_metrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4128 4129 4130 4131 4132 4133 |
# File 'lib/google/apis/language_v2/classes.rb', line 4128 def update!(**args) @best_f1_confidence_metrics = args[:best_f1_confidence_metrics] if args.key?(:best_f1_confidence_metrics) @confidence_metrics_entries = args[:confidence_metrics_entries] if args.key?(:confidence_metrics_entries) @confusion_matrix = args[:confusion_matrix] if args.key?(:confusion_matrix) @per_label_confidence_metrics = args[:per_label_confidence_metrics] if args.key?(:per_label_confidence_metrics) end |