Class: Google::Apis::BigqueryV2::Model
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::Model
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigquery_v2/classes.rb,
generated/google/apis/bigquery_v2/representations.rb,
generated/google/apis/bigquery_v2/representations.rb
Instance Attribute Summary collapse
-
#creation_time ⇒ Fixnum
Output only.
-
#description ⇒ String
[Optional] A user-friendly description of this model.
-
#etag ⇒ String
Output only.
-
#expiration_time ⇒ Fixnum
[Optional] The time when this model expires, in milliseconds since the epoch.
-
#feature_columns ⇒ Array<Google::Apis::BigqueryV2::StandardSqlField>
Output only.
-
#friendly_name ⇒ String
[Optional] A descriptive name for this model.
-
#label_columns ⇒ Array<Google::Apis::BigqueryV2::StandardSqlField>
Output only.
-
#labels ⇒ Hash<String,String>
[Optional] The labels associated with this model.
-
#last_modified_time ⇒ Fixnum
Output only.
-
#location ⇒ String
Output only.
-
#model_reference ⇒ Google::Apis::BigqueryV2::ModelReference
Id path of a model.
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Model
Returns a new instance of Model
3527 3528 3529 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3527 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_time ⇒ Fixnum
Output only. The time when this model was created, in millisecs since the
epoch.
Corresponds to the JSON property creationTime
3452 3453 3454 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3452 def creation_time @creation_time end |
#description ⇒ String
[Optional] A user-friendly description of this model.
Corresponds to the JSON property description
3457 3458 3459 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3457 def description @description end |
#etag ⇒ String
Output only. A hash of this resource.
Corresponds to the JSON property etag
3462 3463 3464 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3462 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
3471 3472 3473 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3471 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
3476 3477 3478 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3476 def feature_columns @feature_columns end |
#friendly_name ⇒ String
[Optional] A descriptive name for this model.
Corresponds to the JSON property friendlyName
3481 3482 3483 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3481 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
3487 3488 3489 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3487 def label_columns @label_columns end |
#labels ⇒ Hash<String,String>
[Optional] 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
3497 3498 3499 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3497 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
3503 3504 3505 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3503 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
3509 3510 3511 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3509 def location @location end |
#model_reference ⇒ Google::Apis::BigqueryV2::ModelReference
Id path of a model.
Corresponds to the JSON property modelReference
3514 3515 3516 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3514 def model_reference @model_reference end |
#model_type ⇒ String
Output only. Type of the model resource.
Corresponds to the JSON property modelType
3519 3520 3521 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3519 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
3525 3526 3527 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3525 def training_runs @training_runs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3532 def update!(**args) @creation_time = args[:creation_time] if args.key?(:creation_time) @description = args[:description] if args.key?(:description) @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 |