Class: Google::Apis::BigqueryV2::EvaluationMetrics

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 of a model. These are either computed on all training data or just the eval data based on whether eval data was used during training. These are not present for imported 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) ⇒ EvaluationMetrics

Returns a new instance of EvaluationMetrics.



1801
1802
1803
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1801

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

Instance Attribute Details

#binary_classification_metricsGoogle::Apis::BigqueryV2::BinaryClassificationMetrics

Evaluation metrics for binary classification/classifier models. Corresponds to the JSON property binaryClassificationMetrics



1777
1778
1779
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1777

def binary_classification_metrics
  @binary_classification_metrics
end

#clustering_metricsGoogle::Apis::BigqueryV2::ClusteringMetrics

Evaluation metrics for clustering models. Corresponds to the JSON property clusteringMetrics



1782
1783
1784
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1782

def clustering_metrics
  @clustering_metrics
end

#multi_class_classification_metricsGoogle::Apis::BigqueryV2::MultiClassClassificationMetrics

Evaluation metrics for multi-class classification/classifier models. Corresponds to the JSON property multiClassClassificationMetrics



1787
1788
1789
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1787

def multi_class_classification_metrics
  @multi_class_classification_metrics
end

#ranking_metricsGoogle::Apis::BigqueryV2::RankingMetrics

Evaluation metrics used by weighted-ALS models specified by feedback_type=implicit. Corresponds to the JSON property rankingMetrics



1793
1794
1795
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1793

def ranking_metrics
  @ranking_metrics
end

#regression_metricsGoogle::Apis::BigqueryV2::RegressionMetrics

Evaluation metrics for regression and explicit feedback type matrix factorization models. Corresponds to the JSON property regressionMetrics



1799
1800
1801
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1799

def regression_metrics
  @regression_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1806
1807
1808
1809
1810
1811
1812
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1806

def update!(**args)
  @binary_classification_metrics = args[:binary_classification_metrics] if args.key?(:binary_classification_metrics)
  @clustering_metrics = args[:clustering_metrics] if args.key?(:clustering_metrics)
  @multi_class_classification_metrics = args[:multi_class_classification_metrics] if args.key?(:multi_class_classification_metrics)
  @ranking_metrics = args[:ranking_metrics] if args.key?(:ranking_metrics)
  @regression_metrics = args[:regression_metrics] if args.key?(:regression_metrics)
end