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

Defined Under Namespace

Classes: TrainingOptions

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



3761
3762
3763
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3761

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

Instance Attribute Details

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

[Output-only, Beta] List of each iteration results. Corresponds to the JSON property iterationResults



3737
3738
3739
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3737

def iteration_results
  @iteration_results
end

#start_timeDateTime

[Output-only, Beta] Training run start time in milliseconds since the epoch. Corresponds to the JSON property startTime

Returns:

  • (DateTime)


3742
3743
3744
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3742

def start_time
  @start_time
end

#stateString

[Output-only, Beta] Different state applicable for a training run. IN PROGRESS: Training run is in progress. FAILED: Training run ended due to a non- retryable failure. SUCCEEDED: Training run successfully completed. CANCELLED: Training run cancelled by the user. Corresponds to the JSON property state

Returns:

  • (String)


3750
3751
3752
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3750

def state
  @state
end

#training_optionsGoogle::Apis::BigqueryV2::TrainingRun::TrainingOptions

[Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run. Corresponds to the JSON property trainingOptions



3759
3760
3761
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3759

def training_options
  @training_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3766
3767
3768
3769
3770
3771
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3766

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