Class: Google::Apis::PredictionV1_4::Training

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

Defined Under Namespace

Classes: DataAnalysis, 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



194
195
196
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 194

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

Instance Attribute Details

#data_analysisGoogle::Apis::PredictionV1_4::Training::DataAnalysis

Data Analysis. Corresponds to the JSON property dataAnalysis



145
146
147
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 145

def data_analysis
  @data_analysis
end

#idString

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

Returns:

  • (String)


150
151
152
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 150

def id
  @id
end

#kindString

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

Returns:

  • (String)


155
156
157
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 155

def kind
  @kind
end

#model_infoGoogle::Apis::PredictionV1_4::Training::ModelInfo

Model metadata. Corresponds to the JSON property modelInfo



160
161
162
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 160

def model_info
  @model_info
end

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

Returns:

  • (String)


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

def self_link
  @self_link
end

#storage_data_locationString

Google storage location of the training data file. Corresponds to the JSON property storageDataLocation

Returns:

  • (String)


170
171
172
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 170

def storage_data_location
  @storage_data_location
end

#storage_pmml_locationString

Google storage location of the preprocessing pmml file. Corresponds to the JSON property storagePMMLLocation

Returns:

  • (String)


175
176
177
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 175

def storage_pmml_location
  @storage_pmml_location
end

#storage_pmml_model_locationString

Google storage location of the pmml model file. Corresponds to the JSON property storagePMMLModelLocation

Returns:

  • (String)


180
181
182
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 180

def storage_pmml_model_location
  @storage_pmml_model_location
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)


186
187
188
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 186

def training_status
  @training_status
end

#utilityArray<Hash<String,Float>>

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

Returns:

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


192
193
194
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 192

def utility
  @utility
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



199
200
201
202
203
204
205
206
207
208
209
210
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 199

def update!(**args)
  @data_analysis = args[:data_analysis] if args.key?(:data_analysis)
  @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)
  @storage_data_location = args[:storage_data_location] if args.key?(:storage_data_location)
  @storage_pmml_location = args[:storage_pmml_location] if args.key?(:storage_pmml_location)
  @storage_pmml_model_location = args[:storage_pmml_model_location] if args.key?(:storage_pmml_model_location)
  @training_status = args[:training_status] if args.key?(:training_status)
  @utility = args[:utility] if args.key?(:utility)
end