Class: Google::Apis::BigqueryV2::TrainingRun

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

Information about a single training query run for the model.

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) ⇒ TrainingRun

Returns a new instance of TrainingRun



5098
5099
5100
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5098

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

Instance Attribute Details

#evaluation_metricsGoogle::Apis::BigqueryV2::EvaluationMetrics

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. Corresponds to the JSON property evaluationMetrics



5080
5081
5082
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5080

def evaluation_metrics
  @evaluation_metrics
end

#resultsArray<Google::Apis::BigqueryV2::IterationResult>

Output of each iteration run, results.size() <= max_iterations. Corresponds to the JSON property results



5085
5086
5087
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5085

def results
  @results
end

#start_timeString

The start time of this training run. Corresponds to the JSON property startTime

Returns:

  • (String)


5090
5091
5092
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5090

def start_time
  @start_time
end

#training_optionsGoogle::Apis::BigqueryV2::TrainingOptions

Options that were used for this training run, includes user specified and default options that were used. Corresponds to the JSON property trainingOptions



5096
5097
5098
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5096

def training_options
  @training_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5103
5104
5105
5106
5107
5108
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5103

def update!(**args)
  @evaluation_metrics = args[:evaluation_metrics] if args.key?(:evaluation_metrics)
  @results = args[:results] if args.key?(:results)
  @start_time = args[:start_time] if args.key?(:start_time)
  @training_options = args[:training_options] if args.key?(:training_options)
end