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.
-
#default_trial_id ⇒ 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.
-
#hparam_search_spaces ⇒ Google::Apis::BigqueryV2::HparamSearchSpaces
Hyperparameter search spaces.
-
#hparam_trials ⇒ Array<Google::Apis::BigqueryV2::HparamTuningTrial>
Output only.
-
#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.
-
#optimal_trial_ids ⇒ Array<Fixnum>
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.
5241 5242 5243 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5241 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
5123 5124 5125 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5123 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
5129 5130 5131 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5129 def creation_time @creation_time end |
#default_trial_id ⇒ Fixnum
Output only. The default trial_id to use in TVFs when the trial_id is not
passed in. For single-objective hyperparameter tuning models, this is
the best trial ID. For multi-objective hyperparameter tuning models, this
is the smallest trial ID among all Pareto optimal trials.
Corresponds to the JSON property defaultTrialId
5139 5140 5141 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5139 def default_trial_id @default_trial_id end |
#description ⇒ String
Optional. A user-friendly description of this model.
Corresponds to the JSON property description
5144 5145 5146 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5144 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
5152 5153 5154 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5152 def encryption_configuration @encryption_configuration end |
#etag ⇒ String
Output only. A hash of this resource.
Corresponds to the JSON property etag
5157 5158 5159 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5157 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
5166 5167 5168 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5166 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
5171 5172 5173 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5171 def feature_columns @feature_columns end |
#friendly_name ⇒ String
Optional. A descriptive name for this model.
Corresponds to the JSON property friendlyName
5176 5177 5178 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5176 def friendly_name @friendly_name end |
#hparam_search_spaces ⇒ Google::Apis::BigqueryV2::HparamSearchSpaces
Hyperparameter search spaces. These should be a subset of training_options.
Corresponds to the JSON property hparamSearchSpaces
5181 5182 5183 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5181 def hparam_search_spaces @hparam_search_spaces end |
#hparam_trials ⇒ Array<Google::Apis::BigqueryV2::HparamTuningTrial>
Output only. Trials of a hyperparameter tuning model sorted by trial_id.
Corresponds to the JSON property hparamTrials
5187 5188 5189 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5187 def hparam_trials @hparam_trials 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
5193 5194 5195 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5193 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
5202 5203 5204 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5202 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
5208 5209 5210 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5208 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
5214 5215 5216 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5214 def location @location end |
#model_reference ⇒ Google::Apis::BigqueryV2::ModelReference
Required. Unique identifier for this model.
Corresponds to the JSON property modelReference
5219 5220 5221 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5219 def model_reference @model_reference end |
#model_type ⇒ String
Output only. Type of the model resource.
Corresponds to the JSON property modelType
5224 5225 5226 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5224 def model_type @model_type end |
#optimal_trial_ids ⇒ Array<Fixnum>
Output only. For single-objective hyperparameter tuning models, it only
contains the best trial. For multi-objective hyperparameter tuning models,
it contains all Pareto optimal trials sorted by trial_id.
Corresponds to the JSON property optimalTrialIds
5233 5234 5235 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5233 def optimal_trial_ids @optimal_trial_ids 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
5239 5240 5241 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5239 def training_runs @training_runs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5246 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) @default_trial_id = args[:default_trial_id] if args.key?(:default_trial_id) @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) @hparam_search_spaces = args[:hparam_search_spaces] if args.key?(:hparam_search_spaces) @hparam_trials = args[:hparam_trials] if args.key?(:hparam_trials) @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) @optimal_trial_ids = args[:optimal_trial_ids] if args.key?(:optimal_trial_ids) @training_runs = args[:training_runs] if args.key?(:training_runs) end |