Class: Google::Apis::MlV1::GoogleCloudMlV1Trial

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

Overview

A message representing a trial.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1Trial

Returns a new instance of GoogleCloudMlV1Trial.



3010
3011
3012
# File 'lib/google/apis/ml_v1/classes.rb', line 3010

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

Instance Attribute Details

#client_idString

Output only. The identifier of the client that originally requested this trial. Corresponds to the JSON property clientId

Returns:

  • (String)


2959
2960
2961
# File 'lib/google/apis/ml_v1/classes.rb', line 2959

def client_id
  @client_id
end

#end_timeString

Output only. Time at which the trial's status changed to COMPLETED. Corresponds to the JSON property endTime

Returns:

  • (String)


2964
2965
2966
# File 'lib/google/apis/ml_v1/classes.rb', line 2964

def end_time
  @end_time
end

#final_measurementGoogle::Apis::MlV1::GoogleCloudMlV1Measurement

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



2969
2970
2971
# File 'lib/google/apis/ml_v1/classes.rb', line 2969

def final_measurement
  @final_measurement
end

#infeasible_reasonString

Output only. A human readable string describing why the trial is infeasible. This should only be set if trial_infeasible is true. Corresponds to the JSON property infeasibleReason

Returns:

  • (String)


2975
2976
2977
# File 'lib/google/apis/ml_v1/classes.rb', line 2975

def infeasible_reason
  @infeasible_reason
end

#measurementsArray<Google::Apis::MlV1::GoogleCloudMlV1Measurement>

A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_time). These are used for early stopping computations. Corresponds to the JSON property measurements



2982
2983
2984
# File 'lib/google/apis/ml_v1/classes.rb', line 2982

def measurements
  @measurements
end

#nameString

Output only. Name of the trial assigned by the service. Corresponds to the JSON property name

Returns:

  • (String)


2987
2988
2989
# File 'lib/google/apis/ml_v1/classes.rb', line 2987

def name
  @name
end

#parametersArray<Google::Apis::MlV1::GoogleCloudMlV1TrialParameter>

The parameters of the trial. Corresponds to the JSON property parameters



2992
2993
2994
# File 'lib/google/apis/ml_v1/classes.rb', line 2992

def parameters
  @parameters
end

#start_timeString

Output only. Time at which the trial was started. Corresponds to the JSON property startTime

Returns:

  • (String)


2997
2998
2999
# File 'lib/google/apis/ml_v1/classes.rb', line 2997

def start_time
  @start_time
end

#stateString

The detailed state of a trial. Corresponds to the JSON property state

Returns:

  • (String)


3002
3003
3004
# File 'lib/google/apis/ml_v1/classes.rb', line 3002

def state
  @state
end

#trial_infeasibleBoolean Also known as: trial_infeasible?

Output only. If true, the parameters in this trial are not attempted again. Corresponds to the JSON property trialInfeasible

Returns:

  • (Boolean)


3007
3008
3009
# File 'lib/google/apis/ml_v1/classes.rb', line 3007

def trial_infeasible
  @trial_infeasible
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
# File 'lib/google/apis/ml_v1/classes.rb', line 3015

def update!(**args)
  @client_id = args[:client_id] if args.key?(:client_id)
  @end_time = args[:end_time] if args.key?(:end_time)
  @final_measurement = args[:final_measurement] if args.key?(:final_measurement)
  @infeasible_reason = args[:infeasible_reason] if args.key?(:infeasible_reason)
  @measurements = args[:measurements] if args.key?(:measurements)
  @name = args[:name] if args.key?(:name)
  @parameters = args[:parameters] if args.key?(:parameters)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
  @trial_infeasible = args[:trial_infeasible] if args.key?(:trial_infeasible)
end