class Google::Apis::BigqueryV2::BinaryClassificationMetrics

Evaluation metrics for binary classification/classifier models.

Attributes

aggregate_classification_metrics[RW]

Aggregate metrics for classification/classifier models. For multi-class models, the metrics are either macro-averaged or micro-averaged. When macro-averaged, the metrics are calculated for each label and then an unweighted average is taken of those values. When micro-averaged, the metric is calculated globally by counting the total number of correctly predicted rows. Corresponds to the JSON property `aggregateClassificationMetrics` @return [Google::Apis::BigqueryV2::AggregateClassificationMetrics]

binary_confusion_matrix_list[RW]

Binary confusion matrix at multiple thresholds. Corresponds to the JSON property `binaryConfusionMatrixList` @return [Array<Google::Apis::BigqueryV2::BinaryConfusionMatrix>]

negative_label[RW]

Label representing the negative class. Corresponds to the JSON property `negativeLabel` @return [String]

positive_label[RW]

Label representing the positive class. Corresponds to the JSON property `positiveLabel` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/bigquery_v2/classes.rb, line 850
def update!(**args)
  @aggregate_classification_metrics = args[:aggregate_classification_metrics] if args.key?(:aggregate_classification_metrics)
  @binary_confusion_matrix_list = args[:binary_confusion_matrix_list] if args.key?(:binary_confusion_matrix_list)
  @negative_label = args[:negative_label] if args.key?(:negative_label)
  @positive_label = args[:positive_label] if args.key?(:positive_label)
end