Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/documentai_v1beta3/classes.rb,
lib/google/apis/documentai_v1beta3/representations.rb,
lib/google/apis/documentai_v1beta3/representations.rb
Overview
Metrics across multiple confidence levels.
Instance Attribute Summary collapse
-
#auprc ⇒ Float
The calculated area under the precision recall curve (AUPRC), computed by integrating over all confidence thresholds.
-
#auprc_exact ⇒ Float
The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching only.
-
#confidence_level_metrics ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics>
Metrics across confidence levels with fuzzy matching enabled.
-
#confidence_level_metrics_exact ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics>
Metrics across confidence levels with only exact matching.
-
#estimated_calibration_error ⇒ Float
The Estimated Calibration Error (ECE) of the confidence of the predicted entities.
-
#estimated_calibration_error_exact ⇒ Float
The ECE for the predicted entities with fuzzy matching disabled, i.e., exact matching only.
-
#metrics_type ⇒ String
The metrics type for the label.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics
constructor
A new instance of GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics
Returns a new instance of GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics.
9466 9467 9468 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 9466 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auprc ⇒ Float
The calculated area under the precision recall curve (AUPRC), computed by
integrating over all confidence thresholds.
Corresponds to the JSON property auprc
9432 9433 9434 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 9432 def auprc @auprc end |
#auprc_exact ⇒ Float
The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching only.
Corresponds to the JSON property auprcExact
9437 9438 9439 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 9437 def auprc_exact @auprc_exact end |
#confidence_level_metrics ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics>
Metrics across confidence levels with fuzzy matching enabled.
Corresponds to the JSON property confidenceLevelMetrics
9442 9443 9444 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 9442 def confidence_level_metrics @confidence_level_metrics end |
#confidence_level_metrics_exact ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationConfidenceLevelMetrics>
Metrics across confidence levels with only exact matching.
Corresponds to the JSON property confidenceLevelMetricsExact
9447 9448 9449 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 9447 def confidence_level_metrics_exact @confidence_level_metrics_exact end |
#estimated_calibration_error ⇒ Float
The Estimated Calibration Error (ECE) of the confidence of the predicted
entities.
Corresponds to the JSON property estimatedCalibrationError
9453 9454 9455 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 9453 def estimated_calibration_error @estimated_calibration_error end |
#estimated_calibration_error_exact ⇒ Float
The ECE for the predicted entities with fuzzy matching disabled, i.e., exact
matching only.
Corresponds to the JSON property estimatedCalibrationErrorExact
9459 9460 9461 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 9459 def estimated_calibration_error_exact @estimated_calibration_error_exact end |
#metrics_type ⇒ String
The metrics type for the label.
Corresponds to the JSON property metricsType
9464 9465 9466 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 9464 def metrics_type @metrics_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9471 9472 9473 9474 9475 9476 9477 9478 9479 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 9471 def update!(**args) @auprc = args[:auprc] if args.key?(:auprc) @auprc_exact = args[:auprc_exact] if args.key?(:auprc_exact) @confidence_level_metrics = args[:confidence_level_metrics] if args.key?(:confidence_level_metrics) @confidence_level_metrics_exact = args[:confidence_level_metrics_exact] if args.key?(:confidence_level_metrics_exact) @estimated_calibration_error = args[:estimated_calibration_error] if args.key?(:estimated_calibration_error) @estimated_calibration_error_exact = args[:estimated_calibration_error_exact] if args.key?(:estimated_calibration_error_exact) @metrics_type = args[:metrics_type] if args.key?(:metrics_type) end |