Class: Google::Apis::PredictionV1_3::Training
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_3::Training
- 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
-
#id ⇒ String
The unique name for the predictive model.
-
#kind ⇒ String
What kind of resource this is.
-
#model_info ⇒ Google::Apis::PredictionV1_3::Training::ModelInfo
Model metadata.
-
#self_link ⇒ String
A URL to re-request this resource.
-
#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 classes 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
173 174 175 |
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 173 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The unique name for the predictive model.
Corresponds to the JSON property id
144 145 146 |
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 144 def id @id end |
#kind ⇒ String
What kind of resource this is.
Corresponds to the JSON property kind
149 150 151 |
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 149 def kind @kind end |
#model_info ⇒ Google::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 |
#self_link ⇒ String
A URL to re-request this resource.
Corresponds to the JSON property selfLink
159 160 161 |
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 159 def self_link @self_link 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
165 166 167 |
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 165 def training_status @training_status end |
#utility ⇒ Array<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
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 |