Class: Google::Apis::BigqueryV2::MultiClassClassificationMetrics
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::MultiClassClassificationMetrics
- 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 multi-class classification/classifier models.
Instance Attribute Summary collapse
-
#aggregate_classification_metrics ⇒ Google::Apis::BigqueryV2::AggregateClassificationMetrics
Aggregate metrics for classification/classifier models.
-
#confusion_matrix_list ⇒ Array<Google::Apis::BigqueryV2::ConfusionMatrix>
Confusion matrix at different thresholds.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MultiClassClassificationMetrics
constructor
A new instance of MultiClassClassificationMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MultiClassClassificationMetrics
Returns a new instance of MultiClassClassificationMetrics.
6910 6911 6912 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6910 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
6903 6904 6905 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6903 def aggregate_classification_metrics @aggregate_classification_metrics end |
#confusion_matrix_list ⇒ Array<Google::Apis::BigqueryV2::ConfusionMatrix>
Confusion matrix at different thresholds.
Corresponds to the JSON property confusionMatrixList
6908 6909 6910 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6908 def confusion_matrix_list @confusion_matrix_list end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6915 6916 6917 6918 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6915 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 |