Class: Google::Apis::BigqueryV2::Model
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::Model
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb
Instance Attribute Summary collapse
-
#best_trial_id ⇒ Fixnum
The best trial_id across all training runs.
-
#creation_time ⇒ Fixnum
Output only.
-
#description ⇒ String
Optional.
-
#encryption_configuration ⇒ Google::Apis::BigqueryV2::EncryptionConfiguration
Custom encryption configuration (e.g., Cloud KMS keys).
-
#etag ⇒ String
Output only.
-
#expiration_time ⇒ Fixnum
Optional.
-
#feature_columns ⇒ Array<Google::Apis::BigqueryV2::StandardSqlField>
Output only.
-
#friendly_name ⇒ String
Optional.
-
#label_columns ⇒ Array<Google::Apis::BigqueryV2::StandardSqlField>
Output only.
-
#labels ⇒ Hash<String,String>
The labels associated with this model.
-
#last_modified_time ⇒ Fixnum
Output only.
-
#location ⇒ String
Output only.
-
#model_reference ⇒ Google::Apis::BigqueryV2::ModelReference
Required.
-
#model_type ⇒ String
Output only.
-
#training_runs ⇒ Array<Google::Apis::BigqueryV2::TrainingRun>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Model
constructor
A new instance of Model.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Model
Returns a new instance of Model.
4491 4492 4493 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4491 def initialize(**args) update!(**args) end |
Instance Attribute Details
#best_trial_id ⇒ Fixnum
The best trial_id across all training runs.
Corresponds to the JSON property bestTrialId
4403 4404 4405 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4403 def best_trial_id @best_trial_id end |
#creation_time ⇒ Fixnum
Output only. The time when this model was created, in millisecs since the
epoch.
Corresponds to the JSON property creationTime
4409 4410 4411 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4409 def creation_time @creation_time end |
#description ⇒ String
Optional. A user-friendly description of this model.
Corresponds to the JSON property description
4414 4415 4416 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4414 def description @description end |
#encryption_configuration ⇒ Google::Apis::BigqueryV2::EncryptionConfiguration
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
4422 4423 4424 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4422 def encryption_configuration @encryption_configuration end |
#etag ⇒ String
Output only. A hash of this resource.
Corresponds to the JSON property etag
4427 4428 4429 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4427 def etag @etag end |
#expiration_time ⇒ Fixnum
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
4436 4437 4438 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4436 def expiration_time @expiration_time end |
#feature_columns ⇒ Array<Google::Apis::BigqueryV2::StandardSqlField>
Output only. Input feature columns that were used to train this model.
Corresponds to the JSON property featureColumns
4441 4442 4443 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4441 def feature_columns @feature_columns end |
#friendly_name ⇒ String
Optional. A descriptive name for this model.
Corresponds to the JSON property friendlyName
4446 4447 4448 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4446 def friendly_name @friendly_name end |
#label_columns ⇒ Array<Google::Apis::BigqueryV2::StandardSqlField>
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
4452 4453 4454 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4452 def label_columns @label_columns end |
#labels ⇒ Hash<String,String>
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
4461 4462 4463 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4461 def labels @labels end |
#last_modified_time ⇒ Fixnum
Output only. The time when this model was last modified, in millisecs since
the epoch.
Corresponds to the JSON property lastModifiedTime
4467 4468 4469 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4467 def last_modified_time @last_modified_time end |
#location ⇒ String
Output only. The geographic location where the model resides. This value is
inherited from the dataset.
Corresponds to the JSON property location
4473 4474 4475 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4473 def location @location end |
#model_reference ⇒ Google::Apis::BigqueryV2::ModelReference
Required. Unique identifier for this model.
Corresponds to the JSON property modelReference
4478 4479 4480 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4478 def model_reference @model_reference end |
#model_type ⇒ String
Output only. Type of the model resource.
Corresponds to the JSON property modelType
4483 4484 4485 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4483 def model_type @model_type end |
#training_runs ⇒ Array<Google::Apis::BigqueryV2::TrainingRun>
Output only. Information for all training runs in increasing order of
start_time.
Corresponds to the JSON property trainingRuns
4489 4490 4491 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4489 def training_runs @training_runs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4496 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 |