Class: Google::Apis::PredictionV1_6::Insert
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_6::Insert
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/prediction_v1_6/classes.rb,
generated/google/apis/prediction_v1_6/representations.rb,
generated/google/apis/prediction_v1_6/representations.rb
Defined Under Namespace
Classes: TrainingInstance
Instance Attribute Summary collapse
-
#id ⇒ String
The unique name for the predictive model.
-
#model_type ⇒ String
Type of predictive model (classification or regression).
-
#source_model ⇒ String
The Id of the model to be copied over.
-
#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_instances ⇒ Array<Google::Apis::PredictionV1_6::Insert::TrainingInstance>
Instances to train model on.
-
#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) ⇒ Insert
constructor
A new instance of Insert.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Insert
Returns a new instance of Insert
435 436 437 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 435 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The unique name for the predictive model.
Corresponds to the JSON property id
397 398 399 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 397 def id @id end |
#model_type ⇒ String
Type of predictive model (classification or regression).
Corresponds to the JSON property modelType
402 403 404 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 402 def model_type @model_type end |
#source_model ⇒ String
The Id of the model to be copied over.
Corresponds to the JSON property sourceModel
407 408 409 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 407 def source_model @source_model end |
#storage_data_location ⇒ String
Google storage location of the training data file.
Corresponds to the JSON property storageDataLocation
412 413 414 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 412 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
417 418 419 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 417 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
422 423 424 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 422 def storage_pmml_model_location @storage_pmml_model_location end |
#training_instances ⇒ Array<Google::Apis::PredictionV1_6::Insert::TrainingInstance>
Instances to train model on.
Corresponds to the JSON property trainingInstances
427 428 429 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 427 def training_instances @training_instances 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
433 434 435 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 433 def utility @utility end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
440 441 442 443 444 445 446 447 448 449 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 440 def update!(**args) @id = args[:id] if args.key?(:id) @model_type = args[:model_type] if args.key?(:model_type) @source_model = args[:source_model] if args.key?(:source_model) @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_instances = args[:training_instances] if args.key?(:training_instances) @utility = args[:utility] if args.key?(:utility) end |