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

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 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

Constructor Details

#initialize(**args) ⇒ EvaluationMetrics

Returns a new instance of EvaluationMetrics.



2633
2634
2635
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2633

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

Instance Attribute Details

#arima_forecasting_metricsGoogle::Apis::BigqueryV2::ArimaForecastingMetrics

Model evaluation metrics for ARIMA forecasting models. Corresponds to the JSON property arimaForecastingMetrics



2599
2600
2601
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2599

def arima_forecasting_metrics
  @arima_forecasting_metrics
end

#binary_classification_metricsGoogle::Apis::BigqueryV2::BinaryClassificationMetrics

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



2604
2605
2606
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2604

def binary_classification_metrics
  @binary_classification_metrics
end

#clustering_metricsGoogle::Apis::BigqueryV2::ClusteringMetrics

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



2609
2610
2611
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2609

def clustering_metrics
  @clustering_metrics
end

#dimensionality_reduction_metricsGoogle::Apis::BigqueryV2::DimensionalityReductionMetrics

Model evaluation metrics for dimensionality reduction models. Corresponds to the JSON property dimensionalityReductionMetrics



2614
2615
2616
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2614

def dimensionality_reduction_metrics
  @dimensionality_reduction_metrics
end

#multi_class_classification_metricsGoogle::Apis::BigqueryV2::MultiClassClassificationMetrics

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



2619
2620
2621
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2619

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



2625
2626
2627
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2625

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



2631
2632
2633
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2631

def regression_metrics
  @regression_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2638
2639
2640
2641
2642
2643
2644
2645
2646
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2638

def update!(**args)
  @arima_forecasting_metrics = args[:arima_forecasting_metrics] if args.key?(:arima_forecasting_metrics)
  @binary_classification_metrics = args[:binary_classification_metrics] if args.key?(:binary_classification_metrics)
  @clustering_metrics = args[:clustering_metrics] if args.key?(:clustering_metrics)
  @dimensionality_reduction_metrics = args[:dimensionality_reduction_metrics] if args.key?(:dimensionality_reduction_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