class Google::Apis::BigqueryV2::Model

Attributes

best_trial_id[RW]

The best trial_id across all training runs. Corresponds to the JSON property `bestTrialId` @return [Fixnum]

creation_time[RW]

Output only. The time when this model was created, in millisecs since the epoch. Corresponds to the JSON property `creationTime` @return [Fixnum]

description[RW]

Optional. A user-friendly description of this model. Corresponds to the JSON property `description` @return [String]

encryption_configuration[RW]

Custom encryption configuration (e.g., Cloud KMS keys). This shows the encryption configuration of the model data while stored in BigQuery storage. This field can be used with PatchModel to update encryption key for an already encrypted model. Corresponds to the JSON property `encryptionConfiguration` @return [Google::Apis::BigqueryV2::EncryptionConfiguration]

etag[RW]

Output only. A hash of this resource. Corresponds to the JSON property `etag` @return [String]

expiration_time[RW]

Optional. The time when this model expires, in milliseconds since the epoch. If not present, the model will persist indefinitely. Expired models will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created models. Corresponds to the JSON property `expirationTime` @return [Fixnum]

feature_columns[RW]

Output only. Input feature columns that were used to train this model. Corresponds to the JSON property `featureColumns` @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]

friendly_name[RW]

Optional. A descriptive name for this model. Corresponds to the JSON property `friendlyName` @return [String]

label_columns[RW]

Output only. Label columns that were used to train this model. The output of the model will have a “predicted_” prefix to these columns. Corresponds to the JSON property `labelColumns` @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]

labels[RW]

The labels associated with this model. You can use these to organize and group your models. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key. Corresponds to the JSON property `labels` @return [Hash<String,String>]

last_modified_time[RW]

Output only. The time when this model was last modified, in millisecs since the epoch. Corresponds to the JSON property `lastModifiedTime` @return [Fixnum]

location[RW]

Output only. The geographic location where the model resides. This value is inherited from the dataset. Corresponds to the JSON property `location` @return [String]

model_reference[RW]

Required. Unique identifier for this model. Corresponds to the JSON property `modelReference` @return [Google::Apis::BigqueryV2::ModelReference]

model_type[RW]

Output only. Type of the model resource. Corresponds to the JSON property `modelType` @return [String]

training_runs[RW]

Output only. Information for all training runs in increasing order of start_time. Corresponds to the JSON property `trainingRuns` @return [Array<Google::Apis::BigqueryV2::TrainingRun>]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/bigquery_v2/classes.rb, line 4609
def update!(**args)
  @best_trial_id = args[:best_trial_id] if args.key?(:best_trial_id)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @description = args[:description] if args.key?(:description)
  @encryption_configuration = args[:encryption_configuration] if args.key?(:encryption_configuration)
  @etag = args[:etag] if args.key?(:etag)
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
  @feature_columns = args[:feature_columns] if args.key?(:feature_columns)
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
  @label_columns = args[:label_columns] if args.key?(:label_columns)
  @labels = args[:labels] if args.key?(:labels)
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
  @location = args[:location] if args.key?(:location)
  @model_reference = args[:model_reference] if args.key?(:model_reference)
  @model_type = args[:model_type] if args.key?(:model_type)
  @training_runs = args[:training_runs] if args.key?(:training_runs)
end