Class: Google::Apis::MlV1::GoogleCloudMlV1CompleteTrialRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/ml_v1/classes.rb,
generated/google/apis/ml_v1/representations.rb,
generated/google/apis/ml_v1/representations.rb

Overview

The request message for the CompleteTrial service method.

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

Returns a new instance of GoogleCloudMlV1CompleteTrialRequest.



801
802
803
# File 'generated/google/apis/ml_v1/classes.rb', line 801

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

Instance Attribute Details

#final_measurementGoogle::Apis::MlV1::GoogleCloudMlV1Measurement

A message representing a Measurement. Corresponds to the JSON property finalMeasurement



786
787
788
# File 'generated/google/apis/ml_v1/classes.rb', line 786

def final_measurement
  @final_measurement
end

#infeasible_reasonString

Optional. A human readable reason why the Trial was infeasible. This should only be provided if trial_infeasible is true. Corresponds to the JSON property infeasibleReason

Returns:

  • (String)


792
793
794
# File 'generated/google/apis/ml_v1/classes.rb', line 792

def infeasible_reason
  @infeasible_reason
end

#trial_infeasibleBoolean Also known as: trial_infeasible?

Optional. True if the trial cannot be run with the given Parameter, and final_measurement will be ignored. Corresponds to the JSON property trialInfeasible

Returns:

  • (Boolean)


798
799
800
# File 'generated/google/apis/ml_v1/classes.rb', line 798

def trial_infeasible
  @trial_infeasible
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



806
807
808
809
810
# File 'generated/google/apis/ml_v1/classes.rb', line 806

def update!(**args)
  @final_measurement = args[:final_measurement] if args.key?(:final_measurement)
  @infeasible_reason = args[:infeasible_reason] if args.key?(:infeasible_reason)
  @trial_infeasible = args[:trial_infeasible] if args.key?(:trial_infeasible)
end