Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaModelevaluationMetricsTextExtractionEvaluationMetrics

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

Metrics for text extraction evaluation results.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaModelevaluationMetricsTextExtractionEvaluationMetrics

Returns a new instance of GoogleCloudAiplatformV1SchemaModelevaluationMetricsTextExtractionEvaluationMetrics.



23838
23839
23840
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23838

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#confidence_metricsArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaModelevaluationMetricsTextExtractionEvaluationMetricsConfidenceMetrics>

Metrics that have confidence thresholds. Precision-recall curve can be derived from them. Corresponds to the JSON property confidenceMetrics



23829
23830
23831
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23829

def confidence_metrics
  @confidence_metrics
end

#confusion_matrixGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaModelevaluationMetricsConfusionMatrix

Confusion matrix of the evaluation. Only set for Models where number of AnnotationSpecs is no more than 10. Only set for ModelEvaluations, not for ModelEvaluationSlices. Corresponds to the JSON property confusionMatrix



23836
23837
23838
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23836

def confusion_matrix
  @confusion_matrix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23843
23844
23845
23846
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23843

def update!(**args)
  @confidence_metrics = args[:confidence_metrics] if args.key?(:confidence_metrics)
  @confusion_matrix = args[:confusion_matrix] if args.key?(:confusion_matrix)
end