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

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

Information about a single training query run for the model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TrainingRun

Returns a new instance of TrainingRun.



7451
7452
7453
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7451

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

Instance Attribute Details

#data_split_resultGoogle::Apis::BigqueryV2::DataSplitResult

Data split result. This contains references to the training and evaluation data tables that were used to train the model. Corresponds to the JSON property dataSplitResult



7427
7428
7429
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7427

def data_split_result
  @data_split_result
end

#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



7434
7435
7436
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7434

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



7439
7440
7441
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7439

def results
  @results
end

#start_timeString

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

Returns:

  • (String)


7444
7445
7446
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7444

def start_time
  @start_time
end

#training_optionsGoogle::Apis::BigqueryV2::TrainingOptions

Options used in model training. Corresponds to the JSON property trainingOptions



7449
7450
7451
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7449

def training_options
  @training_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7456
7457
7458
7459
7460
7461
7462
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7456

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