Class: Google::Apis::PredictionV1_5::Training

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#createdDateTime

Insert time of the model (as a RFC 3339 timestamp). Corresponds to the JSON property created

Returns:

  • (DateTime)


509
510
511
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 509

def created
  @created
end

#idString

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

Returns:

  • (String)


514
515
516
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 514

def id
  @id
end

#kindString

What kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


519
520
521
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 519

def kind
  @kind
end

#model_infoGoogle::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_typeString

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

Returns:

  • (String)


529
530
531
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 529

def model_type
  @model_type
end

A URL to re-request this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


534
535
536
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 534

def self_link
  @self_link
end

#storage_data_locationString

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

Returns:

  • (String)


539
540
541
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 539

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)


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_locationString

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

Returns:

  • (String)


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_completeDateTime

Training completion time (as a RFC 3339 timestamp). Corresponds to the JSON property trainingComplete

Returns:

  • (DateTime)


554
555
556
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 554

def training_complete
  @training_complete
end

#training_instancesArray<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_statusString

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

Returns:

  • (String)


565
566
567
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 565

def training_status
  @training_status
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>>)


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