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

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

Overview

Evaluation metrics for binary classification/classifier models.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BinaryClassificationMetrics

Returns a new instance of BinaryClassificationMetrics.



942
943
944
# File 'lib/google/apis/bigquery_v2/classes.rb', line 942

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

Instance Attribute Details

#aggregate_classification_metricsGoogle::Apis::BigqueryV2::AggregateClassificationMetrics

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



925
926
927
# File 'lib/google/apis/bigquery_v2/classes.rb', line 925

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



930
931
932
# File 'lib/google/apis/bigquery_v2/classes.rb', line 930

def binary_confusion_matrix_list
  @binary_confusion_matrix_list
end

#negative_labelString

Label representing the negative class. Corresponds to the JSON property negativeLabel

Returns:

  • (String)


935
936
937
# File 'lib/google/apis/bigquery_v2/classes.rb', line 935

def negative_label
  @negative_label
end

#positive_labelString

Label representing the positive class. Corresponds to the JSON property positiveLabel

Returns:

  • (String)


940
941
942
# File 'lib/google/apis/bigquery_v2/classes.rb', line 940

def positive_label
  @positive_label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



947
948
949
950
951
952
# File 'lib/google/apis/bigquery_v2/classes.rb', line 947

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