Class: Google::Apis::LanguageV1beta2::XpsTextExtractionEvaluationMetrics
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::XpsTextExtractionEvaluationMetrics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/representations.rb
Instance Attribute Summary collapse
-
#best_f1_confidence_metrics ⇒ Google::Apis::LanguageV1beta2::XpsConfidenceMetricsEntry
ConfidenceMetricsEntry includes generic precision, recall, f1 score etc.
-
#confidence_metrics_entries ⇒ Array<Google::Apis::LanguageV1beta2::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::LanguageV1beta2::XpsConfusionMatrix
Confusion matrix of the model running the classification.
-
#per_label_confidence_metrics ⇒ Hash<String,Google::Apis::LanguageV1beta2::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.
4428 4429 4430 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4428 def initialize(**args) update!(**args) end |
Instance Attribute Details
#best_f1_confidence_metrics ⇒ Google::Apis::LanguageV1beta2::XpsConfidenceMetricsEntry
ConfidenceMetricsEntry includes generic precision, recall, f1 score etc. Next
tag: 16.
Corresponds to the JSON property bestF1ConfidenceMetrics
4408 4409 4410 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4408 def best_f1_confidence_metrics @best_f1_confidence_metrics end |
#confidence_metrics_entries ⇒ Array<Google::Apis::LanguageV1beta2::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
4416 4417 4418 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4416 def confidence_metrics_entries @confidence_metrics_entries end |
#confusion_matrix ⇒ Google::Apis::LanguageV1beta2::XpsConfusionMatrix
Confusion matrix of the model running the classification.
Corresponds to the JSON property confusionMatrix
4421 4422 4423 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4421 def confusion_matrix @confusion_matrix end |
#per_label_confidence_metrics ⇒ Hash<String,Google::Apis::LanguageV1beta2::XpsConfidenceMetricsEntry>
Only recall, precision, and f1_score will be set.
Corresponds to the JSON property perLabelConfidenceMetrics
4426 4427 4428 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4426 def per_label_confidence_metrics @per_label_confidence_metrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4433 4434 4435 4436 4437 4438 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4433 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 |