Class: Google::Apis::PredictionV1_6::Insert

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#idString

The unique name for the predictive model. Corresponds to the JSON property id

Returns:

  • (String)


397
398
399
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 397

def id
  @id
end

#model_typeString

Type of predictive model (classification or regression). Corresponds to the JSON property modelType

Returns:

  • (String)


402
403
404
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 402

def model_type
  @model_type
end

#source_modelString

The Id of the model to be copied over. Corresponds to the JSON property sourceModel

Returns:

  • (String)


407
408
409
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 407

def source_model
  @source_model
end

#storage_data_locationString

Google storage location of the training data file. Corresponds to the JSON property storageDataLocation

Returns:

  • (String)


412
413
414
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 412

def storage_data_location
  @storage_data_location
end

#storage_pmml_locationString

Google storage location of the preprocessing pmml file. Corresponds to the JSON property storagePMMLLocation

Returns:

  • (String)


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_locationString

Google storage location of the pmml model file. Corresponds to the JSON property storagePMMLModelLocation

Returns:

  • (String)


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_instancesArray<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

#utilityArray<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

Returns:

  • (Array<Hash<String,Float>>)


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