Class: Google::Apis::BigqueryV2::MultiClassClassificationMetrics

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 multi-class 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) ⇒ MultiClassClassificationMetrics

Returns a new instance of MultiClassClassificationMetrics



3349
3350
3351
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3349

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



3342
3343
3344
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3342

def aggregate_classification_metrics
  @aggregate_classification_metrics
end

#confusion_matrix_listArray<Google::Apis::BigqueryV2::ConfusionMatrix>

Confusion matrix at different thresholds. Corresponds to the JSON property confusionMatrixList



3347
3348
3349
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3347

def confusion_matrix_list
  @confusion_matrix_list
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3354
3355
3356
3357
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3354

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