Class: Google::Apis::PredictionV1_3::Training

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

Defined Under Namespace

Classes: ModelInfo

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

Returns a new instance of Training



173
174
175
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 173

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

Instance Attribute Details

#idString

The unique name for the predictive model. Corresponds to the JSON property id

Returns:

  • (String)


144
145
146
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 144

def id
  @id
end

#kindString

What kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


149
150
151
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 149

def kind
  @kind
end

#model_infoGoogle::Apis::PredictionV1_3::Training::ModelInfo

Model metadata. Corresponds to the JSON property modelInfo



154
155
156
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 154

def model_info
  @model_info
end

A URL to re-request this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


159
160
161
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 159

def self_link
  @self_link
end

#training_statusString

The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND Corresponds to the JSON property trainingStatus

Returns:

  • (String)


165
166
167
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 165

def training_status
  @training_status
end

#utilityArray<Hash<String,Float>>

A class weighting function, which allows the importance weights for classes to be specified [Categorical models only]. Corresponds to the JSON property utility

Returns:

  • (Array<Hash<String,Float>>)


171
172
173
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 171

def utility
  @utility
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



178
179
180
181
182
183
184
185
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 178

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @model_info = args[:model_info] if args.key?(:model_info)
  @self_link = args[:self_link] if args.key?(:self_link)
  @training_status = args[:training_status] if args.key?(:training_status)
  @utility = args[:utility] if args.key?(:utility)
end