Class: Google::Apis::LanguageV1::XpsTextExtractionEvaluationMetrics
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1::XpsTextExtractionEvaluationMetrics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/representations.rb
Instance Attribute Summary collapse
-
#best_f1_confidence_metrics ⇒ Google::Apis::LanguageV1::XpsConfidenceMetricsEntry
ConfidenceMetricsEntry includes generic precision, recall, f1 score etc.
-
#confidence_metrics_entries ⇒ Array<Google::Apis::LanguageV1::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::LanguageV1::XpsConfusionMatrix
Confusion matrix of the model running the classification.
-
#per_label_confidence_metrics ⇒ Hash<String,Google::Apis::LanguageV1::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.
4408 4409 4410 |
# File 'lib/google/apis/language_v1/classes.rb', line 4408 def initialize(**args) update!(**args) end |
Instance Attribute Details
#best_f1_confidence_metrics ⇒ Google::Apis::LanguageV1::XpsConfidenceMetricsEntry
ConfidenceMetricsEntry includes generic precision, recall, f1 score etc. Next
tag: 16.
Corresponds to the JSON property bestF1ConfidenceMetrics
4388 4389 4390 |
# File 'lib/google/apis/language_v1/classes.rb', line 4388 def best_f1_confidence_metrics @best_f1_confidence_metrics end |
#confidence_metrics_entries ⇒ Array<Google::Apis::LanguageV1::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
4396 4397 4398 |
# File 'lib/google/apis/language_v1/classes.rb', line 4396 def confidence_metrics_entries @confidence_metrics_entries end |
#confusion_matrix ⇒ Google::Apis::LanguageV1::XpsConfusionMatrix
Confusion matrix of the model running the classification.
Corresponds to the JSON property confusionMatrix
4401 4402 4403 |
# File 'lib/google/apis/language_v1/classes.rb', line 4401 def confusion_matrix @confusion_matrix end |
#per_label_confidence_metrics ⇒ Hash<String,Google::Apis::LanguageV1::XpsConfidenceMetricsEntry>
Only recall, precision, and f1_score will be set.
Corresponds to the JSON property perLabelConfidenceMetrics
4406 4407 4408 |
# File 'lib/google/apis/language_v1/classes.rb', line 4406 def per_label_confidence_metrics @per_label_confidence_metrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4413 4414 4415 4416 4417 4418 |
# File 'lib/google/apis/language_v1/classes.rb', line 4413 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 |