class Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ClassificationMetrics

Metrics calculated for a classification model.

Attributes

confusion_matrix[RW]

Confusion matrix of the model running the classification. Only applicable when the metrics entry aggregates multiple labels. Not applicable when the entry is for a single label. Corresponds to the JSON property `confusionMatrix` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ConfusionMatrix]

pr_curve[RW]

Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels. Corresponds to the JSON property `prCurve` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1PrCurve]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 1306
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 1311
def update!(**args)
  @confusion_matrix = args[:confusion_matrix] if args.key?(:confusion_matrix)
  @pr_curve = args[:pr_curve] if args.key?(:pr_curve)
end