Class: Google::Apis::BigqueryV2::BinaryClassificationMetrics
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::BinaryClassificationMetrics
- 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/classifier models.
Instance Attribute Summary collapse
-
#aggregate_classification_metrics ⇒ Google::Apis::BigqueryV2::AggregateClassificationMetrics
Aggregate metrics for classification/classifier models.
-
#binary_confusion_matrix_list ⇒ Array<Google::Apis::BigqueryV2::BinaryConfusionMatrix>
Binary confusion matrix at multiple thresholds.
-
#negative_label ⇒ String
Label representing the negative class.
-
#positive_label ⇒ String
Label representing the positive class.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BinaryClassificationMetrics
constructor
A new instance of BinaryClassificationMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BinaryClassificationMetrics
Returns a new instance of BinaryClassificationMetrics.
703 704 705 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 703 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aggregate_classification_metrics ⇒ Google::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
686 687 688 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 686 def aggregate_classification_metrics @aggregate_classification_metrics end |
#binary_confusion_matrix_list ⇒ Array<Google::Apis::BigqueryV2::BinaryConfusionMatrix>
Binary confusion matrix at multiple thresholds.
Corresponds to the JSON property binaryConfusionMatrixList
691 692 693 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 691 def binary_confusion_matrix_list @binary_confusion_matrix_list end |
#negative_label ⇒ String
Label representing the negative class.
Corresponds to the JSON property negativeLabel
696 697 698 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 696 def negative_label @negative_label end |
#positive_label ⇒ String
Label representing the positive class.
Corresponds to the JSON property positiveLabel
701 702 703 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 701 def positive_label @positive_label end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
708 709 710 711 712 713 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 708 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 |