Class: Google::Apis::PredictionV1_4::Training
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_4::Training
- 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
-
#data_analysis ⇒ Google::Apis::PredictionV1_4::Training::DataAnalysis
Data Analysis.
-
#id ⇒ String
The unique name for the predictive model.
-
#kind ⇒ String
What kind of resource this is.
-
#model_info ⇒ Google::Apis::PredictionV1_4::Training::ModelInfo
Model metadata.
-
#self_link ⇒ String
A URL to re-request this resource.
-
#storage_data_location ⇒ String
Google storage location of the training data file.
-
#storage_pmml_location ⇒ String
Google storage location of the preprocessing pmml file.
-
#storage_pmml_model_location ⇒ String
Google storage location of the pmml model file.
-
#training_status ⇒ String
The current status of the training job.
-
#utility ⇒ Array<Hash<String,Float>>
A class weighting function, which allows the importance weights for class labels to be specified [Categorical models only].
Instance Method Summary collapse
-
#initialize(**args) ⇒ Training
constructor
A new instance of Training.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_analysis ⇒ Google::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 |
#id ⇒ String
The unique name for the predictive model.
Corresponds to the JSON property id
150 151 152 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 150 def id @id end |
#kind ⇒ String
What kind of resource this is.
Corresponds to the JSON property kind
155 156 157 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 155 def kind @kind end |
#model_info ⇒ Google::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 |
#self_link ⇒ String
A URL to re-request this resource.
Corresponds to the JSON property selfLink
165 166 167 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 165 def self_link @self_link end |
#storage_data_location ⇒ String
Google storage location of the training data file.
Corresponds to the JSON property storageDataLocation
170 171 172 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 170 def storage_data_location @storage_data_location end |
#storage_pmml_location ⇒ String
Google storage location of the preprocessing pmml file.
Corresponds to the JSON property storagePMMLLocation
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_location ⇒ String
Google storage location of the pmml model file.
Corresponds to the JSON property storagePMMLModelLocation
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_status ⇒ String
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
186 187 188 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 186 def training_status @training_status end |
#utility ⇒ Array<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
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 |