Class: Google::Apis::PredictionV1_5::Training
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_5::Training
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/prediction_v1_5/classes.rb,
generated/google/apis/prediction_v1_5/representations.rb,
generated/google/apis/prediction_v1_5/representations.rb
Defined Under Namespace
Classes: ModelInfo, TrainingInstance
Instance Attribute Summary collapse
-
#created ⇒ DateTime
Insert time of the model (as a RFC 3339 timestamp).
-
#id ⇒ String
The unique name for the predictive model.
-
#kind ⇒ String
What kind of resource this is.
-
#model_info ⇒ Google::Apis::PredictionV1_5::Training::ModelInfo
Model metadata.
-
#model_type ⇒ String
Type of predictive model (classification or regression) Corresponds to the JSON property
modelType
. -
#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_complete ⇒ DateTime
Training completion time (as a RFC 3339 timestamp).
-
#training_instances ⇒ Array<Google::Apis::PredictionV1_5::Training::TrainingInstance>
Instances to train model on.
-
#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
573 574 575 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 573 def initialize(**args) update!(**args) end |
Instance Attribute Details
#created ⇒ DateTime
Insert time of the model (as a RFC 3339 timestamp).
Corresponds to the JSON property created
509 510 511 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 509 def created @created end |
#id ⇒ String
The unique name for the predictive model.
Corresponds to the JSON property id
514 515 516 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 514 def id @id end |
#kind ⇒ String
What kind of resource this is.
Corresponds to the JSON property kind
519 520 521 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 519 def kind @kind end |
#model_info ⇒ Google::Apis::PredictionV1_5::Training::ModelInfo
Model metadata.
Corresponds to the JSON property modelInfo
524 525 526 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 524 def model_info @model_info end |
#model_type ⇒ String
Type of predictive model (classification or regression)
Corresponds to the JSON property modelType
529 530 531 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 529 def model_type @model_type end |
#self_link ⇒ String
A URL to re-request this resource.
Corresponds to the JSON property selfLink
534 535 536 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 534 def self_link @self_link end |
#storage_data_location ⇒ String
Google storage location of the training data file.
Corresponds to the JSON property storageDataLocation
539 540 541 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 539 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
544 545 546 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 544 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
549 550 551 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 549 def storage_pmml_model_location @storage_pmml_model_location end |
#training_complete ⇒ DateTime
Training completion time (as a RFC 3339 timestamp).
Corresponds to the JSON property trainingComplete
554 555 556 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 554 def training_complete @training_complete end |
#training_instances ⇒ Array<Google::Apis::PredictionV1_5::Training::TrainingInstance>
Instances to train model on.
Corresponds to the JSON property trainingInstances
559 560 561 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 559 def training_instances @training_instances 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
565 566 567 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 565 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
571 572 573 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 571 def utility @utility end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 578 def update!(**args) @created = args[:created] if args.key?(:created) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @model_info = args[:model_info] if args.key?(:model_info) @model_type = args[:model_type] if args.key?(:model_type) @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_complete = args[:training_complete] if args.key?(:training_complete) @training_instances = args[:training_instances] if args.key?(:training_instances) @training_status = args[:training_status] if args.key?(:training_status) @utility = args[:utility] if args.key?(:utility) end |