Class: Google::Apis::BigqueryV2::BinaryClassificationMetrics

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

Overview

Evaluation metrics for binary classification models.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BinaryClassificationMetrics

Returns a new instance of BinaryClassificationMetrics



312
313
314
# File 'generated/google/apis/bigquery_v2/classes.rb', line 312

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

Instance Attribute Details

#aggregate_classification_metricsGoogle::Apis::BigqueryV2::AggregateClassificationMetrics

Aggregate metrics for classification models. For multi-class models, the metrics are either macro-averaged: metrics are calculated for each label and then an unweighted average is taken of those values or micro-averaged: the metric is calculated globally by counting the total number of correctly predicted rows. Corresponds to the JSON property aggregateClassificationMetrics



305
306
307
# File 'generated/google/apis/bigquery_v2/classes.rb', line 305

def aggregate_classification_metrics
  @aggregate_classification_metrics
end

#binary_confusion_matrix_listArray<Google::Apis::BigqueryV2::BinaryConfusionMatrix>

Binary confusion matrix at multiple thresholds. Corresponds to the JSON property binaryConfusionMatrixList



310
311
312
# File 'generated/google/apis/bigquery_v2/classes.rb', line 310

def binary_confusion_matrix_list
  @binary_confusion_matrix_list
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



317
318
319
320
# File 'generated/google/apis/bigquery_v2/classes.rb', line 317

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)
end