class Google::Apis::PredictionV1_6::Insert

Attributes

id[RW]

The unique name for the predictive model. Corresponds to the JSON property `id` @return [String]

model_type[RW]

Type of predictive model (classification or regression). Corresponds to the JSON property `modelType` @return [String]

source_model[RW]

The Id of the model to be copied over. Corresponds to the JSON property `sourceModel` @return [String]

storage_data_location[RW]

Google storage location of the training data file. Corresponds to the JSON property `storageDataLocation` @return [String]

storage_pmml_location[RW]

Google storage location of the preprocessing pmml file. Corresponds to the JSON property `storagePMMLLocation` @return [String]

storage_pmml_model_location[RW]

Google storage location of the pmml model file. Corresponds to the JSON property `storagePMMLModelLocation` @return [String]

training_instances[RW]

Instances to train model on. Corresponds to the JSON property `trainingInstances` @return [Array<Google::Apis::PredictionV1_6::Insert::TrainingInstance>]

utility[RW]

A class weighting function, which allows the importance weights for class labels to be specified (Categorical models only). Corresponds to the JSON property `utility` @return [Array<Hash<String,Float>>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/prediction_v1_6/classes.rb, line 435
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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