blob: 599789c0de9966aae9fc91e91f5a845ad96a27c0 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="bigquery_v2.html">BigQuery API</a> . <a href="bigquery_v2.models.html">models</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070081 <code><a href="#delete">delete(projectId, datasetId, modelId)</a></code></p>
82<p class="firstline">Deletes the model specified by modelId from the dataset.</p>
83<p class="toc_element">
84 <code><a href="#get">get(projectId, datasetId, modelId)</a></code></p>
85<p class="firstline">Gets the specified model resource by model ID.</p>
86<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080087 <code><a href="#list">list(projectId, datasetId, maxResults=None, pageToken=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">Lists all models in the specified dataset. Requires the READER dataset role.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#patch">patch(projectId, datasetId, modelId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Patch specific fields in the specified model.</p>
95<h3>Method Details</h3>
96<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99</div>
100
101<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102 <code class="details" id="delete">delete(projectId, datasetId, modelId)</code>
103 <pre>Deletes the model specified by modelId from the dataset.
104
105Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 projectId: string, Required. Project ID of the model to delete. (required)
107 datasetId: string, Required. Dataset ID of the model to delete. (required)
108 modelId: string, Required. Model ID of the model to delete. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109</pre>
110</div>
111
112<div class="method">
113 <code class="details" id="get">get(projectId, datasetId, modelId)</code>
114 <pre>Gets the specified model resource by model ID.
115
116Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 projectId: string, Required. Project ID of the requested model. (required)
118 datasetId: string, Required. Dataset ID of the requested model. (required)
119 modelId: string, Required. Model ID of the requested model. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700120
121Returns:
122 An object of the form:
123
124 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800125 &quot;trainingRuns&quot;: [ # Output only. Information for all training runs in increasing order of start_time.
126 { # Information about a single training query run for the model.
127 &quot;startTime&quot;: &quot;A String&quot;, # The start time of this training run.
128 &quot;globalExplanations&quot;: [ # Global explanations for important features of the model. For multi-class models, there is one entry for each label class. For other models, there is only one entry in the list.
129 { # Global explanations containing the top most important features after training.
130 &quot;classLabel&quot;: &quot;A String&quot;, # Class label for this set of global explanations. Will be empty/null for binary logistic and linear regression models. Sorted alphabetically in descending order.
131 &quot;explanations&quot;: [ # A list of the top global explanations. Sorted by absolute value of attribution in descending order.
132 { # Explanation for a single feature.
133 &quot;attribution&quot;: 3.14, # Attribution of feature.
134 &quot;featureName&quot;: &quot;A String&quot;, # Full name of the feature. For non-numerical features, will be formatted like .. Overall size of feature name will always be truncated to first 120 characters.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700135 },
136 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700137 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800138 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800139 &quot;trainingOptions&quot;: { # Options that were used for this training run, includes user specified and default options that were used.
140 &quot;labelClassWeights&quot;: { # Weights associated with each label class, for rebalancing the training data. Only applicable for classification models.
141 &quot;a_key&quot;: 3.14,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800142 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800143 &quot;distanceType&quot;: &quot;A String&quot;, # Distance type for clustering models.
144 &quot;hiddenUnits&quot;: [ # Hidden units for dnn models.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800145 &quot;A String&quot;,
146 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800147 &quot;holidayRegion&quot;: &quot;A String&quot;, # The geographical region based on which the holidays are considered in time series modeling. If a valid value is specified, then holiday effects modeling is enabled.
148 &quot;numFactors&quot;: &quot;A String&quot;, # Num factors specified for matrix factorization models.
149 &quot;preserveInputStructs&quot;: True or False, # Whether to preserve the input structs in output feature names. Suppose there is a struct A with field b. When false (default), the output feature name is A_b. When true, the output feature name is A.b.
150 &quot;dataSplitColumn&quot;: &quot;A String&quot;, # The column to split data with. This column won&#x27;t be used as a feature. 1. When data_split_method is CUSTOM, the corresponding column should be boolean. The rows with true value tag are eval data, and the false are training data. 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION rows (from smallest to largest) in the corresponding column are used as training data, and the rest are eval data. It respects the order in Orderable data types: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data-type-properties
151 &quot;includeDrift&quot;: True or False, # Include drift when fitting an ARIMA model.
152 &quot;horizon&quot;: &quot;A String&quot;, # The number of periods ahead that need to be forecasted.
153 &quot;learnRate&quot;: 3.14, # Learning rate in training. Used only for iterative training algorithms.
154 &quot;l1Regularization&quot;: 3.14, # L1 regularization coefficient.
155 &quot;inputLabelColumns&quot;: [ # Name of input label columns in training data.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800156 &quot;A String&quot;,
157 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800158 &quot;maxTreeDepth&quot;: &quot;A String&quot;, # Maximum depth of a tree for boosted tree models.
159 &quot;dataSplitMethod&quot;: &quot;A String&quot;, # The data split type for training and evaluation, e.g. RANDOM.
160 &quot;kmeansInitializationMethod&quot;: &quot;A String&quot;, # The method used to initialize the centroids for kmeans algorithm.
161 &quot;earlyStop&quot;: True or False, # Whether to stop early when the loss doesn&#x27;t improve significantly any more (compared to min_relative_progress). Used only for iterative training algorithms.
162 &quot;lossType&quot;: &quot;A String&quot;, # Type of loss function used during training run.
163 &quot;timeSeriesDataColumn&quot;: &quot;A String&quot;, # Column to be designated as time series data for ARIMA model.
164 &quot;optimizationStrategy&quot;: &quot;A String&quot;, # Optimization strategy for training linear regression models.
165 &quot;minRelativeProgress&quot;: 3.14, # When early_stop is true, stops training when accuracy improvement is less than &#x27;min_relative_progress&#x27;. Used only for iterative training algorithms.
166 &quot;l2Regularization&quot;: 3.14, # L2 regularization coefficient.
167 &quot;feedbackType&quot;: &quot;A String&quot;, # Feedback type that specifies which algorithm to run for matrix factorization.
168 &quot;itemColumn&quot;: &quot;A String&quot;, # Item column specified for matrix factorization models.
169 &quot;minSplitLoss&quot;: 3.14, # Minimum split loss for boosted tree models.
170 &quot;timeSeriesTimestampColumn&quot;: &quot;A String&quot;, # Column to be designated as time series timestamp for ARIMA model.
171 &quot;modelUri&quot;: &quot;A String&quot;, # [Beta] Google Cloud Storage URI from which the model was imported. Only applicable for imported models.
172 &quot;learnRateStrategy&quot;: &quot;A String&quot;, # The strategy to determine learn rate for the current iteration.
173 &quot;walsAlpha&quot;: 3.14, # Hyperparameter for matrix factoration when implicit feedback type is specified.
174 &quot;timeSeriesIdColumn&quot;: &quot;A String&quot;, # The id column that will be used to indicate different time series to forecast in parallel.
175 &quot;subsample&quot;: 3.14, # Subsample fraction of the training data to grow tree to prevent overfitting for boosted tree models.
176 &quot;numClusters&quot;: &quot;A String&quot;, # Number of clusters for clustering models.
177 &quot;dataSplitEvalFraction&quot;: 3.14, # The fraction of evaluation data over the whole input data. The rest of data will be used as training data. The format should be double. Accurate to two decimal places. Default value is 0.2.
178 &quot;autoArimaMaxOrder&quot;: &quot;A String&quot;, # The max value of non-seasonal p and q.
179 &quot;dropout&quot;: 3.14, # Dropout probability for dnn models.
180 &quot;nonSeasonalOrder&quot;: { # Arima order, can be used for both non-seasonal and seasonal parts. # A specification of the non-seasonal part of the ARIMA model: the three components (p, d, q) are the AR order, the degree of differencing, and the MA order.
181 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
182 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
183 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800184 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800185 &quot;dataFrequency&quot;: &quot;A String&quot;, # The data frequency of a time series.
186 &quot;maxIterations&quot;: &quot;A String&quot;, # The maximum number of iterations in training. Used only for iterative training algorithms.
187 &quot;userColumn&quot;: &quot;A String&quot;, # User column specified for matrix factorization models.
188 &quot;kmeansInitializationColumn&quot;: &quot;A String&quot;, # The column used to provide the initial centroids for kmeans algorithm when kmeans_initialization_method is CUSTOM.
189 &quot;autoArima&quot;: True or False, # Whether to enable auto ARIMA or not.
190 &quot;initialLearnRate&quot;: 3.14, # Specifies the initial learning rate for the line search learn rate strategy.
191 &quot;warmStart&quot;: True or False, # Whether to train a model from the last checkpoint.
192 &quot;batchSize&quot;: &quot;A String&quot;, # Batch size for dnn models.
193 },
194 &quot;results&quot;: [ # Output of each iteration run, results.size() &lt;= max_iterations.
195 { # Information about a single iteration of the training run.
196 &quot;trainingLoss&quot;: 3.14, # Loss computed on the training data at the end of iteration.
197 &quot;arimaResult&quot;: { # (Auto-)arima fitting result. Wrap everything in ArimaResult for easier refactoring if we want to use model-specific iteration results.
198 &quot;arimaModelInfo&quot;: [ # This message is repeated because there are multiple arima models fitted in auto-arima. For non-auto-arima model, its size is one.
199 { # Arima model information.
200 &quot;hasDrift&quot;: True or False, # Whether Arima model fitted with drift or not. It is always false when d is not 1.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800201 &quot;arimaFittingMetrics&quot;: { # ARIMA model fitting metrics. # Arima fitting metrics.
202 &quot;variance&quot;: 3.14, # Variance.
203 &quot;aic&quot;: 3.14, # AIC.
204 &quot;logLikelihood&quot;: 3.14, # Log-likelihood.
205 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800206 &quot;arimaCoefficients&quot;: { # Arima coefficients. # Arima coefficients.
207 &quot;interceptCoefficient&quot;: 3.14, # Intercept coefficient, just a double not an array.
208 &quot;autoRegressiveCoefficients&quot;: [ # Auto-regressive coefficients, an array of double.
209 3.14,
210 ],
211 &quot;movingAverageCoefficients&quot;: [ # Moving-average coefficients, an array of double.
212 3.14,
213 ],
214 },
215 &quot;nonSeasonalOrder&quot;: { # Arima order, can be used for both non-seasonal and seasonal parts. # Non-seasonal order.
216 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
217 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
218 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
219 },
220 &quot;timeSeriesId&quot;: &quot;A String&quot;, # The id to indicate different time series.
221 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
222 &quot;A String&quot;,
223 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800224 },
225 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800226 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
227 &quot;A String&quot;,
228 ],
229 },
230 &quot;clusterInfos&quot;: [ # Information about top clusters for clustering models.
231 { # Information about a single cluster for clustering model.
232 &quot;clusterSize&quot;: &quot;A String&quot;, # Cluster size, the total number of points assigned to the cluster.
233 &quot;clusterRadius&quot;: 3.14, # Cluster radius, the average distance from centroid to each point assigned to the cluster.
234 &quot;centroidId&quot;: &quot;A String&quot;, # Centroid id.
235 },
236 ],
237 &quot;durationMs&quot;: &quot;A String&quot;, # Time taken to run the iteration in milliseconds.
238 &quot;learnRate&quot;: 3.14, # Learn rate used for this iteration.
239 &quot;index&quot;: 42, # Index of the iteration, 0 based.
240 &quot;evalLoss&quot;: 3.14, # Loss computed on the eval data at the end of iteration.
241 },
242 ],
243 &quot;evaluationMetrics&quot;: { # Evaluation metrics of a model. These are either computed on all training data or just the eval data based on whether eval data was used during training. These are not present for imported models. # The evaluation metrics over training/eval data that were computed at the end of training.
244 &quot;multiClassClassificationMetrics&quot;: { # Evaluation metrics for multi-class classification/classifier models. # Populated for multi-class classification/classifier models.
245 &quot;aggregateClassificationMetrics&quot;: { # Aggregate metrics for classification/classifier models. For multi-class models, the metrics are either macro-averaged or micro-averaged. When macro-averaged, the metrics are calculated for each label and then an unweighted average is taken of those values. When micro-averaged, the metric is calculated globally by counting the total number of correctly predicted rows. # Aggregate classification metrics.
246 &quot;accuracy&quot;: 3.14, # Accuracy is the fraction of predictions given the correct label. For multiclass this is a micro-averaged metric.
247 &quot;logLoss&quot;: 3.14, # Logarithmic Loss. For multiclass this is a macro-averaged metric.
248 &quot;rocAuc&quot;: 3.14, # Area Under a ROC Curve. For multiclass this is a macro-averaged metric.
249 &quot;precision&quot;: 3.14, # Precision is the fraction of actual positive predictions that had positive actual labels. For multiclass this is a macro-averaged metric treating each class as a binary classifier.
250 &quot;f1Score&quot;: 3.14, # The F1 score is an average of recall and precision. For multiclass this is a macro-averaged metric.
251 &quot;threshold&quot;: 3.14, # Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classfication models this is the confidence threshold.
252 &quot;recall&quot;: 3.14, # Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.
253 },
254 &quot;confusionMatrixList&quot;: [ # Confusion matrix at different thresholds.
255 { # Confusion matrix for multi-class classification models.
256 &quot;confidenceThreshold&quot;: 3.14, # Confidence threshold used when computing the entries of the confusion matrix.
257 &quot;rows&quot;: [ # One row per actual label.
258 { # A single row in the confusion matrix.
259 &quot;entries&quot;: [ # Info describing predicted label distribution.
260 { # A single entry in the confusion matrix.
261 &quot;itemCount&quot;: &quot;A String&quot;, # Number of items being predicted as this label.
262 &quot;predictedLabel&quot;: &quot;A String&quot;, # The predicted label. For confidence_threshold &gt; 0, we will also add an entry indicating the number of items under the confidence threshold.
263 },
264 ],
265 &quot;actualLabel&quot;: &quot;A String&quot;, # The original label of this row.
266 },
267 ],
268 },
269 ],
270 },
271 &quot;binaryClassificationMetrics&quot;: { # Evaluation metrics for binary classification/classifier models. # Populated for binary classification/classifier models.
272 &quot;aggregateClassificationMetrics&quot;: { # Aggregate metrics for classification/classifier models. For multi-class models, the metrics are either macro-averaged or micro-averaged. When macro-averaged, the metrics are calculated for each label and then an unweighted average is taken of those values. When micro-averaged, the metric is calculated globally by counting the total number of correctly predicted rows. # Aggregate classification metrics.
273 &quot;accuracy&quot;: 3.14, # Accuracy is the fraction of predictions given the correct label. For multiclass this is a micro-averaged metric.
274 &quot;logLoss&quot;: 3.14, # Logarithmic Loss. For multiclass this is a macro-averaged metric.
275 &quot;rocAuc&quot;: 3.14, # Area Under a ROC Curve. For multiclass this is a macro-averaged metric.
276 &quot;precision&quot;: 3.14, # Precision is the fraction of actual positive predictions that had positive actual labels. For multiclass this is a macro-averaged metric treating each class as a binary classifier.
277 &quot;f1Score&quot;: 3.14, # The F1 score is an average of recall and precision. For multiclass this is a macro-averaged metric.
278 &quot;threshold&quot;: 3.14, # Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classfication models this is the confidence threshold.
279 &quot;recall&quot;: 3.14, # Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.
280 },
281 &quot;positiveLabel&quot;: &quot;A String&quot;, # Label representing the positive class.
282 &quot;negativeLabel&quot;: &quot;A String&quot;, # Label representing the negative class.
283 &quot;binaryConfusionMatrixList&quot;: [ # Binary confusion matrix at multiple thresholds.
284 { # Confusion matrix for binary classification models.
285 &quot;precision&quot;: 3.14, # The fraction of actual positive predictions that had positive actual labels.
286 &quot;accuracy&quot;: 3.14, # The fraction of predictions given the correct label.
287 &quot;truePositives&quot;: &quot;A String&quot;, # Number of true samples predicted as true.
288 &quot;f1Score&quot;: 3.14, # The equally weighted average of recall and precision.
289 &quot;recall&quot;: 3.14, # The fraction of actual positive labels that were given a positive prediction.
290 &quot;falsePositives&quot;: &quot;A String&quot;, # Number of false samples predicted as true.
291 &quot;positiveClassThreshold&quot;: 3.14, # Threshold value used when computing each of the following metric.
292 &quot;falseNegatives&quot;: &quot;A String&quot;, # Number of false samples predicted as false.
293 &quot;trueNegatives&quot;: &quot;A String&quot;, # Number of true samples predicted as false.
294 },
295 ],
296 },
297 &quot;arimaForecastingMetrics&quot;: { # Model evaluation metrics for ARIMA forecasting models. # Populated for ARIMA models.
298 &quot;timeSeriesId&quot;: [ # Id to differentiate different time series for the large-scale case.
299 &quot;A String&quot;,
300 ],
301 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
302 &quot;A String&quot;,
303 ],
304 &quot;hasDrift&quot;: [ # Whether Arima model fitted with drift or not. It is always false when d is not 1.
305 True or False,
306 ],
307 &quot;arimaFittingMetrics&quot;: [ # Arima model fitting metrics.
308 { # ARIMA model fitting metrics.
309 &quot;variance&quot;: 3.14, # Variance.
310 &quot;aic&quot;: 3.14, # AIC.
311 &quot;logLikelihood&quot;: 3.14, # Log-likelihood.
312 },
313 ],
314 &quot;arimaSingleModelForecastingMetrics&quot;: [ # Repeated as there can be many metric sets (one for each model) in auto-arima and the large-scale case.
315 { # Model evaluation metrics for a single ARIMA forecasting model.
316 &quot;timeSeriesId&quot;: &quot;A String&quot;, # The id to indicate different time series.
317 &quot;arimaFittingMetrics&quot;: { # ARIMA model fitting metrics. # Arima fitting metrics.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800318 &quot;variance&quot;: 3.14, # Variance.
319 &quot;aic&quot;: 3.14, # AIC.
320 &quot;logLikelihood&quot;: 3.14, # Log-likelihood.
321 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800322 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
323 &quot;A String&quot;,
324 ],
325 &quot;hasDrift&quot;: True or False, # Is arima model fitted with drift or not. It is always false when d is not 1.
326 &quot;nonSeasonalOrder&quot;: { # Arima order, can be used for both non-seasonal and seasonal parts. # Non-seasonal order.
327 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
328 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
329 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
330 },
331 },
332 ],
333 &quot;nonSeasonalOrder&quot;: [ # Non-seasonal order.
334 { # Arima order, can be used for both non-seasonal and seasonal parts.
335 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
336 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
337 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
338 },
339 ],
340 },
341 &quot;clusteringMetrics&quot;: { # Evaluation metrics for clustering models. # Populated for clustering models.
342 &quot;daviesBouldinIndex&quot;: 3.14, # Davies-Bouldin index.
343 &quot;meanSquaredDistance&quot;: 3.14, # Mean of squared distances between each sample to its cluster centroid.
344 &quot;clusters&quot;: [ # [Beta] Information for all clusters.
345 { # Message containing the information about one cluster.
346 &quot;centroidId&quot;: &quot;A String&quot;, # Centroid id.
347 &quot;featureValues&quot;: [ # Values of highly variant features for this cluster.
348 { # Representative value of a single feature within the cluster.
349 &quot;categoricalValue&quot;: { # Representative value of a categorical feature. # The categorical feature value.
350 &quot;categoryCounts&quot;: [ # Counts of all categories for the categorical feature. If there are more than ten categories, we return top ten (by count) and return one more CategoryCount with category &quot;_OTHER_&quot; and count as aggregate counts of remaining categories.
351 { # Represents the count of a single category within the cluster.
352 &quot;count&quot;: &quot;A String&quot;, # The count of training samples matching the category within the cluster.
353 &quot;category&quot;: &quot;A String&quot;, # The name of category.
354 },
355 ],
356 },
357 &quot;featureColumn&quot;: &quot;A String&quot;, # The feature column name.
358 &quot;numericalValue&quot;: 3.14, # The numerical feature value. This is the centroid value for this feature.
359 },
360 ],
361 &quot;count&quot;: &quot;A String&quot;, # Count of training data rows that were assigned to this cluster.
362 },
363 ],
364 },
365 &quot;regressionMetrics&quot;: { # Evaluation metrics for regression and explicit feedback type matrix factorization models. # Populated for regression models and explicit feedback type matrix factorization models.
366 &quot;meanSquaredLogError&quot;: 3.14, # Mean squared log error.
367 &quot;meanSquaredError&quot;: 3.14, # Mean squared error.
368 &quot;rSquared&quot;: 3.14, # R^2 score.
369 &quot;meanAbsoluteError&quot;: 3.14, # Mean absolute error.
370 &quot;medianAbsoluteError&quot;: 3.14, # Median absolute error.
371 },
372 &quot;rankingMetrics&quot;: { # Evaluation metrics used by weighted-ALS models specified by feedback_type=implicit. # Populated for implicit feedback type matrix factorization models.
373 &quot;meanAveragePrecision&quot;: 3.14, # Calculates a precision per user for all the items by ranking them and then averages all the precisions across all the users.
374 &quot;meanSquaredError&quot;: 3.14, # Similar to the mean squared error computed in regression and explicit recommendation models except instead of computing the rating directly, the output from evaluate is computed against a preference which is 1 or 0 depending on if the rating exists or not.
375 &quot;averageRank&quot;: 3.14, # Determines the goodness of a ranking by computing the percentile rank from the predicted confidence and dividing it by the original rank.
376 &quot;normalizedDiscountedCumulativeGain&quot;: 3.14, # A metric to determine the goodness of a ranking calculated from the predicted confidence by comparing it to an ideal rank measured by the original ratings.
377 },
378 },
379 &quot;dataSplitResult&quot;: { # Data split result. This contains references to the training and evaluation data tables that were used to train the model. # Data split result of the training run. Only set when the input data is actually split.
380 &quot;evaluationTable&quot;: { # Table reference of the evaluation data after split.
381 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
382 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
383 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
384 },
385 &quot;trainingTable&quot;: { # Table reference of the training data after split.
386 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
387 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
388 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
389 },
390 },
391 },
392 ],
393 &quot;expirationTime&quot;: &quot;A String&quot;, # 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.
394 &quot;encryptionConfiguration&quot;: { # 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.
395 &quot;kmsKeyName&quot;: &quot;A String&quot;, # [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.
396 },
397 &quot;friendlyName&quot;: &quot;A String&quot;, # Optional. A descriptive name for this model.
398 &quot;modelType&quot;: &quot;A String&quot;, # Output only. Type of the model resource.
399 &quot;description&quot;: &quot;A String&quot;, # Optional. A user-friendly description of this model.
400 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The time when this model was last modified, in millisecs since the epoch.
401 &quot;labels&quot;: { # 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.
402 &quot;a_key&quot;: &quot;A String&quot;,
403 },
404 &quot;labelColumns&quot;: [ # Output only. Label columns that were used to train this model. The output of the model will have a &quot;predicted_&quot; prefix to these columns.
405 { # A field or a column.
406 &quot;type&quot;: { # The type of a variable, e.g., a function argument. Examples: INT64: {type_kind=&quot;INT64&quot;} ARRAY: {type_kind=&quot;ARRAY&quot;, array_element_type=&quot;STRING&quot;} STRUCT&gt;: {type_kind=&quot;STRUCT&quot;, struct_type={fields=[ {name=&quot;x&quot;, type={type_kind=&quot;STRING&quot;}}, {name=&quot;y&quot;, type={type_kind=&quot;ARRAY&quot;, array_element_type=&quot;DATE&quot;}} ]}} # Optional. The type of this parameter. Absent if not explicitly specified (e.g., CREATE FUNCTION statement can omit the return type; in this case the output parameter does not have this &quot;type&quot; field).
407 &quot;typeKind&quot;: &quot;A String&quot;, # Required. The top level type of this field. Can be any standard SQL data type (e.g., &quot;INT64&quot;, &quot;DATE&quot;, &quot;ARRAY&quot;).
408 &quot;arrayElementType&quot;: # Object with schema name: StandardSqlDataType # The type of the array&#x27;s elements, if type_kind = &quot;ARRAY&quot;.
409 &quot;structType&quot;: { # The fields of this struct, in order, if type_kind = &quot;STRUCT&quot;.
410 &quot;fields&quot;: [
411 # Object with schema name: StandardSqlField
412 ],
413 },
414 },
415 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.
416 },
417 ],
418 &quot;featureColumns&quot;: [ # Output only. Input feature columns that were used to train this model.
419 { # A field or a column.
420 &quot;type&quot;: { # The type of a variable, e.g., a function argument. Examples: INT64: {type_kind=&quot;INT64&quot;} ARRAY: {type_kind=&quot;ARRAY&quot;, array_element_type=&quot;STRING&quot;} STRUCT&gt;: {type_kind=&quot;STRUCT&quot;, struct_type={fields=[ {name=&quot;x&quot;, type={type_kind=&quot;STRING&quot;}}, {name=&quot;y&quot;, type={type_kind=&quot;ARRAY&quot;, array_element_type=&quot;DATE&quot;}} ]}} # Optional. The type of this parameter. Absent if not explicitly specified (e.g., CREATE FUNCTION statement can omit the return type; in this case the output parameter does not have this &quot;type&quot; field).
421 &quot;typeKind&quot;: &quot;A String&quot;, # Required. The top level type of this field. Can be any standard SQL data type (e.g., &quot;INT64&quot;, &quot;DATE&quot;, &quot;ARRAY&quot;).
422 &quot;arrayElementType&quot;: # Object with schema name: StandardSqlDataType # The type of the array&#x27;s elements, if type_kind = &quot;ARRAY&quot;.
423 &quot;structType&quot;: { # The fields of this struct, in order, if type_kind = &quot;STRUCT&quot;.
424 &quot;fields&quot;: [
425 # Object with schema name: StandardSqlField
426 ],
427 },
428 },
429 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.
430 },
431 ],
432 &quot;etag&quot;: &quot;A String&quot;, # Output only. A hash of this resource.
433 &quot;modelReference&quot;: { # Required. Unique identifier for this model.
434 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this model.
435 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this model.
436 &quot;modelId&quot;: &quot;A String&quot;, # [Required] The ID of the model. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
437 },
438 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The time when this model was created, in millisecs since the epoch.
439 &quot;location&quot;: &quot;A String&quot;, # Output only. The geographic location where the model resides. This value is inherited from the dataset.
440 }</pre>
441</div>
442
443<div class="method">
444 <code class="details" id="list">list(projectId, datasetId, maxResults=None, pageToken=None)</code>
445 <pre>Lists all models in the specified dataset. Requires the READER dataset role.
446
447Args:
448 projectId: string, Required. Project ID of the models to list. (required)
449 datasetId: string, Required. Dataset ID of the models to list. (required)
450 maxResults: integer, The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.
451 pageToken: string, Page token, returned by a previous call to request the next page of results
452
453Returns:
454 An object of the form:
455
456 {
457 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to request the next page of results.
458 &quot;models&quot;: [ # Models in the requested dataset. Only the following fields are populated: model_reference, model_type, creation_time, last_modified_time and labels.
459 {
460 &quot;trainingRuns&quot;: [ # Output only. Information for all training runs in increasing order of start_time.
461 { # Information about a single training query run for the model.
462 &quot;startTime&quot;: &quot;A String&quot;, # The start time of this training run.
463 &quot;globalExplanations&quot;: [ # Global explanations for important features of the model. For multi-class models, there is one entry for each label class. For other models, there is only one entry in the list.
464 { # Global explanations containing the top most important features after training.
465 &quot;classLabel&quot;: &quot;A String&quot;, # Class label for this set of global explanations. Will be empty/null for binary logistic and linear regression models. Sorted alphabetically in descending order.
466 &quot;explanations&quot;: [ # A list of the top global explanations. Sorted by absolute value of attribution in descending order.
467 { # Explanation for a single feature.
468 &quot;attribution&quot;: 3.14, # Attribution of feature.
469 &quot;featureName&quot;: &quot;A String&quot;, # Full name of the feature. For non-numerical features, will be formatted like .. Overall size of feature name will always be truncated to first 120 characters.
470 },
471 ],
472 },
473 ],
474 &quot;trainingOptions&quot;: { # Options that were used for this training run, includes user specified and default options that were used.
475 &quot;labelClassWeights&quot;: { # Weights associated with each label class, for rebalancing the training data. Only applicable for classification models.
476 &quot;a_key&quot;: 3.14,
477 },
478 &quot;distanceType&quot;: &quot;A String&quot;, # Distance type for clustering models.
479 &quot;hiddenUnits&quot;: [ # Hidden units for dnn models.
480 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800481 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800482 &quot;holidayRegion&quot;: &quot;A String&quot;, # The geographical region based on which the holidays are considered in time series modeling. If a valid value is specified, then holiday effects modeling is enabled.
483 &quot;numFactors&quot;: &quot;A String&quot;, # Num factors specified for matrix factorization models.
484 &quot;preserveInputStructs&quot;: True or False, # Whether to preserve the input structs in output feature names. Suppose there is a struct A with field b. When false (default), the output feature name is A_b. When true, the output feature name is A.b.
485 &quot;dataSplitColumn&quot;: &quot;A String&quot;, # The column to split data with. This column won&#x27;t be used as a feature. 1. When data_split_method is CUSTOM, the corresponding column should be boolean. The rows with true value tag are eval data, and the false are training data. 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION rows (from smallest to largest) in the corresponding column are used as training data, and the rest are eval data. It respects the order in Orderable data types: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data-type-properties
486 &quot;includeDrift&quot;: True or False, # Include drift when fitting an ARIMA model.
487 &quot;horizon&quot;: &quot;A String&quot;, # The number of periods ahead that need to be forecasted.
488 &quot;learnRate&quot;: 3.14, # Learning rate in training. Used only for iterative training algorithms.
489 &quot;l1Regularization&quot;: 3.14, # L1 regularization coefficient.
490 &quot;inputLabelColumns&quot;: [ # Name of input label columns in training data.
491 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800492 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800493 &quot;maxTreeDepth&quot;: &quot;A String&quot;, # Maximum depth of a tree for boosted tree models.
494 &quot;dataSplitMethod&quot;: &quot;A String&quot;, # The data split type for training and evaluation, e.g. RANDOM.
495 &quot;kmeansInitializationMethod&quot;: &quot;A String&quot;, # The method used to initialize the centroids for kmeans algorithm.
496 &quot;earlyStop&quot;: True or False, # Whether to stop early when the loss doesn&#x27;t improve significantly any more (compared to min_relative_progress). Used only for iterative training algorithms.
497 &quot;lossType&quot;: &quot;A String&quot;, # Type of loss function used during training run.
498 &quot;timeSeriesDataColumn&quot;: &quot;A String&quot;, # Column to be designated as time series data for ARIMA model.
499 &quot;optimizationStrategy&quot;: &quot;A String&quot;, # Optimization strategy for training linear regression models.
500 &quot;minRelativeProgress&quot;: 3.14, # When early_stop is true, stops training when accuracy improvement is less than &#x27;min_relative_progress&#x27;. Used only for iterative training algorithms.
501 &quot;l2Regularization&quot;: 3.14, # L2 regularization coefficient.
502 &quot;feedbackType&quot;: &quot;A String&quot;, # Feedback type that specifies which algorithm to run for matrix factorization.
503 &quot;itemColumn&quot;: &quot;A String&quot;, # Item column specified for matrix factorization models.
504 &quot;minSplitLoss&quot;: 3.14, # Minimum split loss for boosted tree models.
505 &quot;timeSeriesTimestampColumn&quot;: &quot;A String&quot;, # Column to be designated as time series timestamp for ARIMA model.
506 &quot;modelUri&quot;: &quot;A String&quot;, # [Beta] Google Cloud Storage URI from which the model was imported. Only applicable for imported models.
507 &quot;learnRateStrategy&quot;: &quot;A String&quot;, # The strategy to determine learn rate for the current iteration.
508 &quot;walsAlpha&quot;: 3.14, # Hyperparameter for matrix factoration when implicit feedback type is specified.
509 &quot;timeSeriesIdColumn&quot;: &quot;A String&quot;, # The id column that will be used to indicate different time series to forecast in parallel.
510 &quot;subsample&quot;: 3.14, # Subsample fraction of the training data to grow tree to prevent overfitting for boosted tree models.
511 &quot;numClusters&quot;: &quot;A String&quot;, # Number of clusters for clustering models.
512 &quot;dataSplitEvalFraction&quot;: 3.14, # The fraction of evaluation data over the whole input data. The rest of data will be used as training data. The format should be double. Accurate to two decimal places. Default value is 0.2.
513 &quot;autoArimaMaxOrder&quot;: &quot;A String&quot;, # The max value of non-seasonal p and q.
514 &quot;dropout&quot;: 3.14, # Dropout probability for dnn models.
515 &quot;nonSeasonalOrder&quot;: { # Arima order, can be used for both non-seasonal and seasonal parts. # A specification of the non-seasonal part of the ARIMA model: the three components (p, d, q) are the AR order, the degree of differencing, and the MA order.
516 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
517 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
518 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
519 },
520 &quot;dataFrequency&quot;: &quot;A String&quot;, # The data frequency of a time series.
521 &quot;maxIterations&quot;: &quot;A String&quot;, # The maximum number of iterations in training. Used only for iterative training algorithms.
522 &quot;userColumn&quot;: &quot;A String&quot;, # User column specified for matrix factorization models.
523 &quot;kmeansInitializationColumn&quot;: &quot;A String&quot;, # The column used to provide the initial centroids for kmeans algorithm when kmeans_initialization_method is CUSTOM.
524 &quot;autoArima&quot;: True or False, # Whether to enable auto ARIMA or not.
525 &quot;initialLearnRate&quot;: 3.14, # Specifies the initial learning rate for the line search learn rate strategy.
526 &quot;warmStart&quot;: True or False, # Whether to train a model from the last checkpoint.
527 &quot;batchSize&quot;: &quot;A String&quot;, # Batch size for dnn models.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800528 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800529 &quot;results&quot;: [ # Output of each iteration run, results.size() &lt;= max_iterations.
530 { # Information about a single iteration of the training run.
531 &quot;trainingLoss&quot;: 3.14, # Loss computed on the training data at the end of iteration.
532 &quot;arimaResult&quot;: { # (Auto-)arima fitting result. Wrap everything in ArimaResult for easier refactoring if we want to use model-specific iteration results.
533 &quot;arimaModelInfo&quot;: [ # This message is repeated because there are multiple arima models fitted in auto-arima. For non-auto-arima model, its size is one.
534 { # Arima model information.
535 &quot;hasDrift&quot;: True or False, # Whether Arima model fitted with drift or not. It is always false when d is not 1.
536 &quot;arimaFittingMetrics&quot;: { # ARIMA model fitting metrics. # Arima fitting metrics.
537 &quot;variance&quot;: 3.14, # Variance.
538 &quot;aic&quot;: 3.14, # AIC.
539 &quot;logLikelihood&quot;: 3.14, # Log-likelihood.
540 },
541 &quot;arimaCoefficients&quot;: { # Arima coefficients. # Arima coefficients.
542 &quot;interceptCoefficient&quot;: 3.14, # Intercept coefficient, just a double not an array.
543 &quot;autoRegressiveCoefficients&quot;: [ # Auto-regressive coefficients, an array of double.
544 3.14,
545 ],
546 &quot;movingAverageCoefficients&quot;: [ # Moving-average coefficients, an array of double.
547 3.14,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800548 ],
549 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800550 &quot;nonSeasonalOrder&quot;: { # Arima order, can be used for both non-seasonal and seasonal parts. # Non-seasonal order.
551 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
552 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
553 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
554 },
555 &quot;timeSeriesId&quot;: &quot;A String&quot;, # The id to indicate different time series.
556 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
557 &quot;A String&quot;,
558 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800559 },
560 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800561 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
562 &quot;A String&quot;,
563 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800564 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800565 &quot;clusterInfos&quot;: [ # Information about top clusters for clustering models.
566 { # Information about a single cluster for clustering model.
567 &quot;clusterSize&quot;: &quot;A String&quot;, # Cluster size, the total number of points assigned to the cluster.
568 &quot;clusterRadius&quot;: 3.14, # Cluster radius, the average distance from centroid to each point assigned to the cluster.
569 &quot;centroidId&quot;: &quot;A String&quot;, # Centroid id.
570 },
571 ],
572 &quot;durationMs&quot;: &quot;A String&quot;, # Time taken to run the iteration in milliseconds.
573 &quot;learnRate&quot;: 3.14, # Learn rate used for this iteration.
574 &quot;index&quot;: 42, # Index of the iteration, 0 based.
575 &quot;evalLoss&quot;: 3.14, # Loss computed on the eval data at the end of iteration.
576 },
577 ],
578 &quot;evaluationMetrics&quot;: { # Evaluation metrics of a model. These are either computed on all training data or just the eval data based on whether eval data was used during training. These are not present for imported models. # The evaluation metrics over training/eval data that were computed at the end of training.
579 &quot;multiClassClassificationMetrics&quot;: { # Evaluation metrics for multi-class classification/classifier models. # Populated for multi-class classification/classifier models.
580 &quot;aggregateClassificationMetrics&quot;: { # Aggregate metrics for classification/classifier models. For multi-class models, the metrics are either macro-averaged or micro-averaged. When macro-averaged, the metrics are calculated for each label and then an unweighted average is taken of those values. When micro-averaged, the metric is calculated globally by counting the total number of correctly predicted rows. # Aggregate classification metrics.
581 &quot;accuracy&quot;: 3.14, # Accuracy is the fraction of predictions given the correct label. For multiclass this is a micro-averaged metric.
582 &quot;logLoss&quot;: 3.14, # Logarithmic Loss. For multiclass this is a macro-averaged metric.
583 &quot;rocAuc&quot;: 3.14, # Area Under a ROC Curve. For multiclass this is a macro-averaged metric.
584 &quot;precision&quot;: 3.14, # Precision is the fraction of actual positive predictions that had positive actual labels. For multiclass this is a macro-averaged metric treating each class as a binary classifier.
585 &quot;f1Score&quot;: 3.14, # The F1 score is an average of recall and precision. For multiclass this is a macro-averaged metric.
586 &quot;threshold&quot;: 3.14, # Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classfication models this is the confidence threshold.
587 &quot;recall&quot;: 3.14, # Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800588 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800589 &quot;confusionMatrixList&quot;: [ # Confusion matrix at different thresholds.
590 { # Confusion matrix for multi-class classification models.
591 &quot;confidenceThreshold&quot;: 3.14, # Confidence threshold used when computing the entries of the confusion matrix.
592 &quot;rows&quot;: [ # One row per actual label.
593 { # A single row in the confusion matrix.
594 &quot;entries&quot;: [ # Info describing predicted label distribution.
595 { # A single entry in the confusion matrix.
596 &quot;itemCount&quot;: &quot;A String&quot;, # Number of items being predicted as this label.
597 &quot;predictedLabel&quot;: &quot;A String&quot;, # The predicted label. For confidence_threshold &gt; 0, we will also add an entry indicating the number of items under the confidence threshold.
598 },
599 ],
600 &quot;actualLabel&quot;: &quot;A String&quot;, # The original label of this row.
601 },
602 ],
603 },
604 ],
605 },
606 &quot;binaryClassificationMetrics&quot;: { # Evaluation metrics for binary classification/classifier models. # Populated for binary classification/classifier models.
607 &quot;aggregateClassificationMetrics&quot;: { # Aggregate metrics for classification/classifier models. For multi-class models, the metrics are either macro-averaged or micro-averaged. When macro-averaged, the metrics are calculated for each label and then an unweighted average is taken of those values. When micro-averaged, the metric is calculated globally by counting the total number of correctly predicted rows. # Aggregate classification metrics.
608 &quot;accuracy&quot;: 3.14, # Accuracy is the fraction of predictions given the correct label. For multiclass this is a micro-averaged metric.
609 &quot;logLoss&quot;: 3.14, # Logarithmic Loss. For multiclass this is a macro-averaged metric.
610 &quot;rocAuc&quot;: 3.14, # Area Under a ROC Curve. For multiclass this is a macro-averaged metric.
611 &quot;precision&quot;: 3.14, # Precision is the fraction of actual positive predictions that had positive actual labels. For multiclass this is a macro-averaged metric treating each class as a binary classifier.
612 &quot;f1Score&quot;: 3.14, # The F1 score is an average of recall and precision. For multiclass this is a macro-averaged metric.
613 &quot;threshold&quot;: 3.14, # Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classfication models this is the confidence threshold.
614 &quot;recall&quot;: 3.14, # Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.
615 },
616 &quot;positiveLabel&quot;: &quot;A String&quot;, # Label representing the positive class.
617 &quot;negativeLabel&quot;: &quot;A String&quot;, # Label representing the negative class.
618 &quot;binaryConfusionMatrixList&quot;: [ # Binary confusion matrix at multiple thresholds.
619 { # Confusion matrix for binary classification models.
620 &quot;precision&quot;: 3.14, # The fraction of actual positive predictions that had positive actual labels.
621 &quot;accuracy&quot;: 3.14, # The fraction of predictions given the correct label.
622 &quot;truePositives&quot;: &quot;A String&quot;, # Number of true samples predicted as true.
623 &quot;f1Score&quot;: 3.14, # The equally weighted average of recall and precision.
624 &quot;recall&quot;: 3.14, # The fraction of actual positive labels that were given a positive prediction.
625 &quot;falsePositives&quot;: &quot;A String&quot;, # Number of false samples predicted as true.
626 &quot;positiveClassThreshold&quot;: 3.14, # Threshold value used when computing each of the following metric.
627 &quot;falseNegatives&quot;: &quot;A String&quot;, # Number of false samples predicted as false.
628 &quot;trueNegatives&quot;: &quot;A String&quot;, # Number of true samples predicted as false.
629 },
630 ],
631 },
632 &quot;arimaForecastingMetrics&quot;: { # Model evaluation metrics for ARIMA forecasting models. # Populated for ARIMA models.
633 &quot;timeSeriesId&quot;: [ # Id to differentiate different time series for the large-scale case.
634 &quot;A String&quot;,
635 ],
636 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
637 &quot;A String&quot;,
638 ],
639 &quot;hasDrift&quot;: [ # Whether Arima model fitted with drift or not. It is always false when d is not 1.
640 True or False,
641 ],
642 &quot;arimaFittingMetrics&quot;: [ # Arima model fitting metrics.
643 { # ARIMA model fitting metrics.
644 &quot;variance&quot;: 3.14, # Variance.
645 &quot;aic&quot;: 3.14, # AIC.
646 &quot;logLikelihood&quot;: 3.14, # Log-likelihood.
647 },
648 ],
649 &quot;arimaSingleModelForecastingMetrics&quot;: [ # Repeated as there can be many metric sets (one for each model) in auto-arima and the large-scale case.
650 { # Model evaluation metrics for a single ARIMA forecasting model.
651 &quot;timeSeriesId&quot;: &quot;A String&quot;, # The id to indicate different time series.
652 &quot;arimaFittingMetrics&quot;: { # ARIMA model fitting metrics. # Arima fitting metrics.
653 &quot;variance&quot;: 3.14, # Variance.
654 &quot;aic&quot;: 3.14, # AIC.
655 &quot;logLikelihood&quot;: 3.14, # Log-likelihood.
656 },
657 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
658 &quot;A String&quot;,
659 ],
660 &quot;hasDrift&quot;: True or False, # Is arima model fitted with drift or not. It is always false when d is not 1.
661 &quot;nonSeasonalOrder&quot;: { # Arima order, can be used for both non-seasonal and seasonal parts. # Non-seasonal order.
662 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
663 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
664 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
665 },
666 },
667 ],
668 &quot;nonSeasonalOrder&quot;: [ # Non-seasonal order.
669 { # Arima order, can be used for both non-seasonal and seasonal parts.
670 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
671 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
672 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
673 },
674 ],
675 },
676 &quot;clusteringMetrics&quot;: { # Evaluation metrics for clustering models. # Populated for clustering models.
677 &quot;daviesBouldinIndex&quot;: 3.14, # Davies-Bouldin index.
678 &quot;meanSquaredDistance&quot;: 3.14, # Mean of squared distances between each sample to its cluster centroid.
679 &quot;clusters&quot;: [ # [Beta] Information for all clusters.
680 { # Message containing the information about one cluster.
681 &quot;centroidId&quot;: &quot;A String&quot;, # Centroid id.
682 &quot;featureValues&quot;: [ # Values of highly variant features for this cluster.
683 { # Representative value of a single feature within the cluster.
684 &quot;categoricalValue&quot;: { # Representative value of a categorical feature. # The categorical feature value.
685 &quot;categoryCounts&quot;: [ # Counts of all categories for the categorical feature. If there are more than ten categories, we return top ten (by count) and return one more CategoryCount with category &quot;_OTHER_&quot; and count as aggregate counts of remaining categories.
686 { # Represents the count of a single category within the cluster.
687 &quot;count&quot;: &quot;A String&quot;, # The count of training samples matching the category within the cluster.
688 &quot;category&quot;: &quot;A String&quot;, # The name of category.
689 },
690 ],
691 },
692 &quot;featureColumn&quot;: &quot;A String&quot;, # The feature column name.
693 &quot;numericalValue&quot;: 3.14, # The numerical feature value. This is the centroid value for this feature.
694 },
695 ],
696 &quot;count&quot;: &quot;A String&quot;, # Count of training data rows that were assigned to this cluster.
697 },
698 ],
699 },
700 &quot;regressionMetrics&quot;: { # Evaluation metrics for regression and explicit feedback type matrix factorization models. # Populated for regression models and explicit feedback type matrix factorization models.
701 &quot;meanSquaredLogError&quot;: 3.14, # Mean squared log error.
702 &quot;meanSquaredError&quot;: 3.14, # Mean squared error.
703 &quot;rSquared&quot;: 3.14, # R^2 score.
704 &quot;meanAbsoluteError&quot;: 3.14, # Mean absolute error.
705 &quot;medianAbsoluteError&quot;: 3.14, # Median absolute error.
706 },
707 &quot;rankingMetrics&quot;: { # Evaluation metrics used by weighted-ALS models specified by feedback_type=implicit. # Populated for implicit feedback type matrix factorization models.
708 &quot;meanAveragePrecision&quot;: 3.14, # Calculates a precision per user for all the items by ranking them and then averages all the precisions across all the users.
709 &quot;meanSquaredError&quot;: 3.14, # Similar to the mean squared error computed in regression and explicit recommendation models except instead of computing the rating directly, the output from evaluate is computed against a preference which is 1 or 0 depending on if the rating exists or not.
710 &quot;averageRank&quot;: 3.14, # Determines the goodness of a ranking by computing the percentile rank from the predicted confidence and dividing it by the original rank.
711 &quot;normalizedDiscountedCumulativeGain&quot;: 3.14, # A metric to determine the goodness of a ranking calculated from the predicted confidence by comparing it to an ideal rank measured by the original ratings.
712 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800713 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800714 &quot;dataSplitResult&quot;: { # Data split result. This contains references to the training and evaluation data tables that were used to train the model. # Data split result of the training run. Only set when the input data is actually split.
715 &quot;evaluationTable&quot;: { # Table reference of the evaluation data after split.
716 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
717 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
718 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
719 },
720 &quot;trainingTable&quot;: { # Table reference of the training data after split.
721 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
722 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
723 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
724 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800725 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800726 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800727 ],
728 &quot;expirationTime&quot;: &quot;A String&quot;, # 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.
729 &quot;encryptionConfiguration&quot;: { # 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.
730 &quot;kmsKeyName&quot;: &quot;A String&quot;, # [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800731 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800732 &quot;friendlyName&quot;: &quot;A String&quot;, # Optional. A descriptive name for this model.
733 &quot;modelType&quot;: &quot;A String&quot;, # Output only. Type of the model resource.
734 &quot;description&quot;: &quot;A String&quot;, # Optional. A user-friendly description of this model.
735 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The time when this model was last modified, in millisecs since the epoch.
736 &quot;labels&quot;: { # 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.
737 &quot;a_key&quot;: &quot;A String&quot;,
738 },
739 &quot;labelColumns&quot;: [ # Output only. Label columns that were used to train this model. The output of the model will have a &quot;predicted_&quot; prefix to these columns.
740 { # A field or a column.
741 &quot;type&quot;: { # The type of a variable, e.g., a function argument. Examples: INT64: {type_kind=&quot;INT64&quot;} ARRAY: {type_kind=&quot;ARRAY&quot;, array_element_type=&quot;STRING&quot;} STRUCT&gt;: {type_kind=&quot;STRUCT&quot;, struct_type={fields=[ {name=&quot;x&quot;, type={type_kind=&quot;STRING&quot;}}, {name=&quot;y&quot;, type={type_kind=&quot;ARRAY&quot;, array_element_type=&quot;DATE&quot;}} ]}} # Optional. The type of this parameter. Absent if not explicitly specified (e.g., CREATE FUNCTION statement can omit the return type; in this case the output parameter does not have this &quot;type&quot; field).
742 &quot;typeKind&quot;: &quot;A String&quot;, # Required. The top level type of this field. Can be any standard SQL data type (e.g., &quot;INT64&quot;, &quot;DATE&quot;, &quot;ARRAY&quot;).
743 &quot;arrayElementType&quot;: # Object with schema name: StandardSqlDataType # The type of the array&#x27;s elements, if type_kind = &quot;ARRAY&quot;.
744 &quot;structType&quot;: { # The fields of this struct, in order, if type_kind = &quot;STRUCT&quot;.
745 &quot;fields&quot;: [
746 # Object with schema name: StandardSqlField
747 ],
748 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800749 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800750 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800751 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800752 ],
753 &quot;featureColumns&quot;: [ # Output only. Input feature columns that were used to train this model.
754 { # A field or a column.
755 &quot;type&quot;: { # The type of a variable, e.g., a function argument. Examples: INT64: {type_kind=&quot;INT64&quot;} ARRAY: {type_kind=&quot;ARRAY&quot;, array_element_type=&quot;STRING&quot;} STRUCT&gt;: {type_kind=&quot;STRUCT&quot;, struct_type={fields=[ {name=&quot;x&quot;, type={type_kind=&quot;STRING&quot;}}, {name=&quot;y&quot;, type={type_kind=&quot;ARRAY&quot;, array_element_type=&quot;DATE&quot;}} ]}} # Optional. The type of this parameter. Absent if not explicitly specified (e.g., CREATE FUNCTION statement can omit the return type; in this case the output parameter does not have this &quot;type&quot; field).
756 &quot;typeKind&quot;: &quot;A String&quot;, # Required. The top level type of this field. Can be any standard SQL data type (e.g., &quot;INT64&quot;, &quot;DATE&quot;, &quot;ARRAY&quot;).
757 &quot;arrayElementType&quot;: # Object with schema name: StandardSqlDataType # The type of the array&#x27;s elements, if type_kind = &quot;ARRAY&quot;.
758 &quot;structType&quot;: { # The fields of this struct, in order, if type_kind = &quot;STRUCT&quot;.
759 &quot;fields&quot;: [
760 # Object with schema name: StandardSqlField
761 ],
762 },
763 },
764 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.
765 },
766 ],
767 &quot;etag&quot;: &quot;A String&quot;, # Output only. A hash of this resource.
768 &quot;modelReference&quot;: { # Required. Unique identifier for this model.
769 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this model.
770 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this model.
771 &quot;modelId&quot;: &quot;A String&quot;, # [Required] The ID of the model. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800772 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800773 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The time when this model was created, in millisecs since the epoch.
774 &quot;location&quot;: &quot;A String&quot;, # Output only. The geographic location where the model resides. This value is inherited from the dataset.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800775 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700776 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700777 }</pre>
778</div>
779
780<div class="method">
781 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
782 <pre>Retrieves the next page of results.
783
784Args:
785 previous_request: The request for the previous page. (required)
786 previous_response: The response from the request for the previous page. (required)
787
788Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700789 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700790 page. Returns None if there are no more items in the collection.
791 </pre>
792</div>
793
794<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700795 <code class="details" id="patch">patch(projectId, datasetId, modelId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700796 <pre>Patch specific fields in the specified model.
797
798Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700799 projectId: string, Required. Project ID of the model to patch. (required)
800 datasetId: string, Required. Dataset ID of the model to patch. (required)
801 modelId: string, Required. Model ID of the model to patch. (required)
802 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700803 The object takes the form of:
804
805{
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800806 &quot;trainingRuns&quot;: [ # Output only. Information for all training runs in increasing order of start_time.
807 { # Information about a single training query run for the model.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800808 &quot;startTime&quot;: &quot;A String&quot;, # The start time of this training run.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800809 &quot;globalExplanations&quot;: [ # Global explanations for important features of the model. For multi-class models, there is one entry for each label class. For other models, there is only one entry in the list.
810 { # Global explanations containing the top most important features after training.
811 &quot;classLabel&quot;: &quot;A String&quot;, # Class label for this set of global explanations. Will be empty/null for binary logistic and linear regression models. Sorted alphabetically in descending order.
812 &quot;explanations&quot;: [ # A list of the top global explanations. Sorted by absolute value of attribution in descending order.
813 { # Explanation for a single feature.
814 &quot;attribution&quot;: 3.14, # Attribution of feature.
815 &quot;featureName&quot;: &quot;A String&quot;, # Full name of the feature. For non-numerical features, will be formatted like .. Overall size of feature name will always be truncated to first 120 characters.
816 },
817 ],
818 },
819 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800820 &quot;trainingOptions&quot;: { # Options that were used for this training run, includes user specified and default options that were used.
821 &quot;labelClassWeights&quot;: { # Weights associated with each label class, for rebalancing the training data. Only applicable for classification models.
822 &quot;a_key&quot;: 3.14,
823 },
824 &quot;distanceType&quot;: &quot;A String&quot;, # Distance type for clustering models.
825 &quot;hiddenUnits&quot;: [ # Hidden units for dnn models.
826 &quot;A String&quot;,
827 ],
828 &quot;holidayRegion&quot;: &quot;A String&quot;, # The geographical region based on which the holidays are considered in time series modeling. If a valid value is specified, then holiday effects modeling is enabled.
829 &quot;numFactors&quot;: &quot;A String&quot;, # Num factors specified for matrix factorization models.
830 &quot;preserveInputStructs&quot;: True or False, # Whether to preserve the input structs in output feature names. Suppose there is a struct A with field b. When false (default), the output feature name is A_b. When true, the output feature name is A.b.
831 &quot;dataSplitColumn&quot;: &quot;A String&quot;, # The column to split data with. This column won&#x27;t be used as a feature. 1. When data_split_method is CUSTOM, the corresponding column should be boolean. The rows with true value tag are eval data, and the false are training data. 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION rows (from smallest to largest) in the corresponding column are used as training data, and the rest are eval data. It respects the order in Orderable data types: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data-type-properties
832 &quot;includeDrift&quot;: True or False, # Include drift when fitting an ARIMA model.
833 &quot;horizon&quot;: &quot;A String&quot;, # The number of periods ahead that need to be forecasted.
834 &quot;learnRate&quot;: 3.14, # Learning rate in training. Used only for iterative training algorithms.
835 &quot;l1Regularization&quot;: 3.14, # L1 regularization coefficient.
836 &quot;inputLabelColumns&quot;: [ # Name of input label columns in training data.
837 &quot;A String&quot;,
838 ],
839 &quot;maxTreeDepth&quot;: &quot;A String&quot;, # Maximum depth of a tree for boosted tree models.
840 &quot;dataSplitMethod&quot;: &quot;A String&quot;, # The data split type for training and evaluation, e.g. RANDOM.
841 &quot;kmeansInitializationMethod&quot;: &quot;A String&quot;, # The method used to initialize the centroids for kmeans algorithm.
842 &quot;earlyStop&quot;: True or False, # Whether to stop early when the loss doesn&#x27;t improve significantly any more (compared to min_relative_progress). Used only for iterative training algorithms.
843 &quot;lossType&quot;: &quot;A String&quot;, # Type of loss function used during training run.
844 &quot;timeSeriesDataColumn&quot;: &quot;A String&quot;, # Column to be designated as time series data for ARIMA model.
845 &quot;optimizationStrategy&quot;: &quot;A String&quot;, # Optimization strategy for training linear regression models.
846 &quot;minRelativeProgress&quot;: 3.14, # When early_stop is true, stops training when accuracy improvement is less than &#x27;min_relative_progress&#x27;. Used only for iterative training algorithms.
847 &quot;l2Regularization&quot;: 3.14, # L2 regularization coefficient.
848 &quot;feedbackType&quot;: &quot;A String&quot;, # Feedback type that specifies which algorithm to run for matrix factorization.
849 &quot;itemColumn&quot;: &quot;A String&quot;, # Item column specified for matrix factorization models.
850 &quot;minSplitLoss&quot;: 3.14, # Minimum split loss for boosted tree models.
851 &quot;timeSeriesTimestampColumn&quot;: &quot;A String&quot;, # Column to be designated as time series timestamp for ARIMA model.
852 &quot;modelUri&quot;: &quot;A String&quot;, # [Beta] Google Cloud Storage URI from which the model was imported. Only applicable for imported models.
853 &quot;learnRateStrategy&quot;: &quot;A String&quot;, # The strategy to determine learn rate for the current iteration.
854 &quot;walsAlpha&quot;: 3.14, # Hyperparameter for matrix factoration when implicit feedback type is specified.
855 &quot;timeSeriesIdColumn&quot;: &quot;A String&quot;, # The id column that will be used to indicate different time series to forecast in parallel.
856 &quot;subsample&quot;: 3.14, # Subsample fraction of the training data to grow tree to prevent overfitting for boosted tree models.
857 &quot;numClusters&quot;: &quot;A String&quot;, # Number of clusters for clustering models.
858 &quot;dataSplitEvalFraction&quot;: 3.14, # The fraction of evaluation data over the whole input data. The rest of data will be used as training data. The format should be double. Accurate to two decimal places. Default value is 0.2.
859 &quot;autoArimaMaxOrder&quot;: &quot;A String&quot;, # The max value of non-seasonal p and q.
860 &quot;dropout&quot;: 3.14, # Dropout probability for dnn models.
861 &quot;nonSeasonalOrder&quot;: { # Arima order, can be used for both non-seasonal and seasonal parts. # A specification of the non-seasonal part of the ARIMA model: the three components (p, d, q) are the AR order, the degree of differencing, and the MA order.
862 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
863 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
864 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
865 },
866 &quot;dataFrequency&quot;: &quot;A String&quot;, # The data frequency of a time series.
867 &quot;maxIterations&quot;: &quot;A String&quot;, # The maximum number of iterations in training. Used only for iterative training algorithms.
868 &quot;userColumn&quot;: &quot;A String&quot;, # User column specified for matrix factorization models.
869 &quot;kmeansInitializationColumn&quot;: &quot;A String&quot;, # The column used to provide the initial centroids for kmeans algorithm when kmeans_initialization_method is CUSTOM.
870 &quot;autoArima&quot;: True or False, # Whether to enable auto ARIMA or not.
871 &quot;initialLearnRate&quot;: 3.14, # Specifies the initial learning rate for the line search learn rate strategy.
872 &quot;warmStart&quot;: True or False, # Whether to train a model from the last checkpoint.
873 &quot;batchSize&quot;: &quot;A String&quot;, # Batch size for dnn models.
874 },
875 &quot;results&quot;: [ # Output of each iteration run, results.size() &lt;= max_iterations.
876 { # Information about a single iteration of the training run.
877 &quot;trainingLoss&quot;: 3.14, # Loss computed on the training data at the end of iteration.
878 &quot;arimaResult&quot;: { # (Auto-)arima fitting result. Wrap everything in ArimaResult for easier refactoring if we want to use model-specific iteration results.
879 &quot;arimaModelInfo&quot;: [ # This message is repeated because there are multiple arima models fitted in auto-arima. For non-auto-arima model, its size is one.
880 { # Arima model information.
881 &quot;hasDrift&quot;: True or False, # Whether Arima model fitted with drift or not. It is always false when d is not 1.
882 &quot;arimaFittingMetrics&quot;: { # ARIMA model fitting metrics. # Arima fitting metrics.
883 &quot;variance&quot;: 3.14, # Variance.
884 &quot;aic&quot;: 3.14, # AIC.
885 &quot;logLikelihood&quot;: 3.14, # Log-likelihood.
886 },
887 &quot;arimaCoefficients&quot;: { # Arima coefficients. # Arima coefficients.
888 &quot;interceptCoefficient&quot;: 3.14, # Intercept coefficient, just a double not an array.
889 &quot;autoRegressiveCoefficients&quot;: [ # Auto-regressive coefficients, an array of double.
890 3.14,
891 ],
892 &quot;movingAverageCoefficients&quot;: [ # Moving-average coefficients, an array of double.
893 3.14,
894 ],
895 },
896 &quot;nonSeasonalOrder&quot;: { # Arima order, can be used for both non-seasonal and seasonal parts. # Non-seasonal order.
897 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
898 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
899 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
900 },
901 &quot;timeSeriesId&quot;: &quot;A String&quot;, # The id to indicate different time series.
902 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
903 &quot;A String&quot;,
904 ],
905 },
906 ],
907 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
908 &quot;A String&quot;,
909 ],
910 },
911 &quot;clusterInfos&quot;: [ # Information about top clusters for clustering models.
912 { # Information about a single cluster for clustering model.
913 &quot;clusterSize&quot;: &quot;A String&quot;, # Cluster size, the total number of points assigned to the cluster.
914 &quot;clusterRadius&quot;: 3.14, # Cluster radius, the average distance from centroid to each point assigned to the cluster.
915 &quot;centroidId&quot;: &quot;A String&quot;, # Centroid id.
916 },
917 ],
918 &quot;durationMs&quot;: &quot;A String&quot;, # Time taken to run the iteration in milliseconds.
919 &quot;learnRate&quot;: 3.14, # Learn rate used for this iteration.
920 &quot;index&quot;: 42, # Index of the iteration, 0 based.
921 &quot;evalLoss&quot;: 3.14, # Loss computed on the eval data at the end of iteration.
922 },
923 ],
924 &quot;evaluationMetrics&quot;: { # Evaluation metrics of a model. These are either computed on all training data or just the eval data based on whether eval data was used during training. These are not present for imported models. # The evaluation metrics over training/eval data that were computed at the end of training.
925 &quot;multiClassClassificationMetrics&quot;: { # Evaluation metrics for multi-class classification/classifier models. # Populated for multi-class classification/classifier models.
926 &quot;aggregateClassificationMetrics&quot;: { # Aggregate metrics for classification/classifier models. For multi-class models, the metrics are either macro-averaged or micro-averaged. When macro-averaged, the metrics are calculated for each label and then an unweighted average is taken of those values. When micro-averaged, the metric is calculated globally by counting the total number of correctly predicted rows. # Aggregate classification metrics.
927 &quot;accuracy&quot;: 3.14, # Accuracy is the fraction of predictions given the correct label. For multiclass this is a micro-averaged metric.
928 &quot;logLoss&quot;: 3.14, # Logarithmic Loss. For multiclass this is a macro-averaged metric.
929 &quot;rocAuc&quot;: 3.14, # Area Under a ROC Curve. For multiclass this is a macro-averaged metric.
930 &quot;precision&quot;: 3.14, # Precision is the fraction of actual positive predictions that had positive actual labels. For multiclass this is a macro-averaged metric treating each class as a binary classifier.
931 &quot;f1Score&quot;: 3.14, # The F1 score is an average of recall and precision. For multiclass this is a macro-averaged metric.
932 &quot;threshold&quot;: 3.14, # Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classfication models this is the confidence threshold.
933 &quot;recall&quot;: 3.14, # Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.
934 },
935 &quot;confusionMatrixList&quot;: [ # Confusion matrix at different thresholds.
936 { # Confusion matrix for multi-class classification models.
937 &quot;confidenceThreshold&quot;: 3.14, # Confidence threshold used when computing the entries of the confusion matrix.
938 &quot;rows&quot;: [ # One row per actual label.
939 { # A single row in the confusion matrix.
940 &quot;entries&quot;: [ # Info describing predicted label distribution.
941 { # A single entry in the confusion matrix.
942 &quot;itemCount&quot;: &quot;A String&quot;, # Number of items being predicted as this label.
943 &quot;predictedLabel&quot;: &quot;A String&quot;, # The predicted label. For confidence_threshold &gt; 0, we will also add an entry indicating the number of items under the confidence threshold.
944 },
945 ],
946 &quot;actualLabel&quot;: &quot;A String&quot;, # The original label of this row.
947 },
948 ],
949 },
950 ],
951 },
952 &quot;binaryClassificationMetrics&quot;: { # Evaluation metrics for binary classification/classifier models. # Populated for binary classification/classifier models.
953 &quot;aggregateClassificationMetrics&quot;: { # Aggregate metrics for classification/classifier models. For multi-class models, the metrics are either macro-averaged or micro-averaged. When macro-averaged, the metrics are calculated for each label and then an unweighted average is taken of those values. When micro-averaged, the metric is calculated globally by counting the total number of correctly predicted rows. # Aggregate classification metrics.
954 &quot;accuracy&quot;: 3.14, # Accuracy is the fraction of predictions given the correct label. For multiclass this is a micro-averaged metric.
955 &quot;logLoss&quot;: 3.14, # Logarithmic Loss. For multiclass this is a macro-averaged metric.
956 &quot;rocAuc&quot;: 3.14, # Area Under a ROC Curve. For multiclass this is a macro-averaged metric.
957 &quot;precision&quot;: 3.14, # Precision is the fraction of actual positive predictions that had positive actual labels. For multiclass this is a macro-averaged metric treating each class as a binary classifier.
958 &quot;f1Score&quot;: 3.14, # The F1 score is an average of recall and precision. For multiclass this is a macro-averaged metric.
959 &quot;threshold&quot;: 3.14, # Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classfication models this is the confidence threshold.
960 &quot;recall&quot;: 3.14, # Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.
961 },
962 &quot;positiveLabel&quot;: &quot;A String&quot;, # Label representing the positive class.
963 &quot;negativeLabel&quot;: &quot;A String&quot;, # Label representing the negative class.
964 &quot;binaryConfusionMatrixList&quot;: [ # Binary confusion matrix at multiple thresholds.
965 { # Confusion matrix for binary classification models.
966 &quot;precision&quot;: 3.14, # The fraction of actual positive predictions that had positive actual labels.
967 &quot;accuracy&quot;: 3.14, # The fraction of predictions given the correct label.
968 &quot;truePositives&quot;: &quot;A String&quot;, # Number of true samples predicted as true.
969 &quot;f1Score&quot;: 3.14, # The equally weighted average of recall and precision.
970 &quot;recall&quot;: 3.14, # The fraction of actual positive labels that were given a positive prediction.
971 &quot;falsePositives&quot;: &quot;A String&quot;, # Number of false samples predicted as true.
972 &quot;positiveClassThreshold&quot;: 3.14, # Threshold value used when computing each of the following metric.
973 &quot;falseNegatives&quot;: &quot;A String&quot;, # Number of false samples predicted as false.
974 &quot;trueNegatives&quot;: &quot;A String&quot;, # Number of true samples predicted as false.
975 },
976 ],
977 },
978 &quot;arimaForecastingMetrics&quot;: { # Model evaluation metrics for ARIMA forecasting models. # Populated for ARIMA models.
979 &quot;timeSeriesId&quot;: [ # Id to differentiate different time series for the large-scale case.
980 &quot;A String&quot;,
981 ],
982 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
983 &quot;A String&quot;,
984 ],
985 &quot;hasDrift&quot;: [ # Whether Arima model fitted with drift or not. It is always false when d is not 1.
986 True or False,
987 ],
988 &quot;arimaFittingMetrics&quot;: [ # Arima model fitting metrics.
989 { # ARIMA model fitting metrics.
990 &quot;variance&quot;: 3.14, # Variance.
991 &quot;aic&quot;: 3.14, # AIC.
992 &quot;logLikelihood&quot;: 3.14, # Log-likelihood.
993 },
994 ],
995 &quot;arimaSingleModelForecastingMetrics&quot;: [ # Repeated as there can be many metric sets (one for each model) in auto-arima and the large-scale case.
996 { # Model evaluation metrics for a single ARIMA forecasting model.
997 &quot;timeSeriesId&quot;: &quot;A String&quot;, # The id to indicate different time series.
998 &quot;arimaFittingMetrics&quot;: { # ARIMA model fitting metrics. # Arima fitting metrics.
999 &quot;variance&quot;: 3.14, # Variance.
1000 &quot;aic&quot;: 3.14, # AIC.
1001 &quot;logLikelihood&quot;: 3.14, # Log-likelihood.
1002 },
1003 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
1004 &quot;A String&quot;,
1005 ],
1006 &quot;hasDrift&quot;: True or False, # Is arima model fitted with drift or not. It is always false when d is not 1.
1007 &quot;nonSeasonalOrder&quot;: { # Arima order, can be used for both non-seasonal and seasonal parts. # Non-seasonal order.
1008 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
1009 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
1010 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
1011 },
1012 },
1013 ],
1014 &quot;nonSeasonalOrder&quot;: [ # Non-seasonal order.
1015 { # Arima order, can be used for both non-seasonal and seasonal parts.
1016 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
1017 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
1018 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
1019 },
1020 ],
1021 },
1022 &quot;clusteringMetrics&quot;: { # Evaluation metrics for clustering models. # Populated for clustering models.
1023 &quot;daviesBouldinIndex&quot;: 3.14, # Davies-Bouldin index.
1024 &quot;meanSquaredDistance&quot;: 3.14, # Mean of squared distances between each sample to its cluster centroid.
1025 &quot;clusters&quot;: [ # [Beta] Information for all clusters.
1026 { # Message containing the information about one cluster.
1027 &quot;centroidId&quot;: &quot;A String&quot;, # Centroid id.
1028 &quot;featureValues&quot;: [ # Values of highly variant features for this cluster.
1029 { # Representative value of a single feature within the cluster.
1030 &quot;categoricalValue&quot;: { # Representative value of a categorical feature. # The categorical feature value.
1031 &quot;categoryCounts&quot;: [ # Counts of all categories for the categorical feature. If there are more than ten categories, we return top ten (by count) and return one more CategoryCount with category &quot;_OTHER_&quot; and count as aggregate counts of remaining categories.
1032 { # Represents the count of a single category within the cluster.
1033 &quot;count&quot;: &quot;A String&quot;, # The count of training samples matching the category within the cluster.
1034 &quot;category&quot;: &quot;A String&quot;, # The name of category.
1035 },
1036 ],
1037 },
1038 &quot;featureColumn&quot;: &quot;A String&quot;, # The feature column name.
1039 &quot;numericalValue&quot;: 3.14, # The numerical feature value. This is the centroid value for this feature.
1040 },
1041 ],
1042 &quot;count&quot;: &quot;A String&quot;, # Count of training data rows that were assigned to this cluster.
1043 },
1044 ],
1045 },
1046 &quot;regressionMetrics&quot;: { # Evaluation metrics for regression and explicit feedback type matrix factorization models. # Populated for regression models and explicit feedback type matrix factorization models.
1047 &quot;meanSquaredLogError&quot;: 3.14, # Mean squared log error.
1048 &quot;meanSquaredError&quot;: 3.14, # Mean squared error.
1049 &quot;rSquared&quot;: 3.14, # R^2 score.
1050 &quot;meanAbsoluteError&quot;: 3.14, # Mean absolute error.
1051 &quot;medianAbsoluteError&quot;: 3.14, # Median absolute error.
1052 },
1053 &quot;rankingMetrics&quot;: { # Evaluation metrics used by weighted-ALS models specified by feedback_type=implicit. # Populated for implicit feedback type matrix factorization models.
1054 &quot;meanAveragePrecision&quot;: 3.14, # Calculates a precision per user for all the items by ranking them and then averages all the precisions across all the users.
1055 &quot;meanSquaredError&quot;: 3.14, # Similar to the mean squared error computed in regression and explicit recommendation models except instead of computing the rating directly, the output from evaluate is computed against a preference which is 1 or 0 depending on if the rating exists or not.
1056 &quot;averageRank&quot;: 3.14, # Determines the goodness of a ranking by computing the percentile rank from the predicted confidence and dividing it by the original rank.
1057 &quot;normalizedDiscountedCumulativeGain&quot;: 3.14, # A metric to determine the goodness of a ranking calculated from the predicted confidence by comparing it to an ideal rank measured by the original ratings.
1058 },
1059 },
1060 &quot;dataSplitResult&quot;: { # Data split result. This contains references to the training and evaluation data tables that were used to train the model. # Data split result of the training run. Only set when the input data is actually split.
1061 &quot;evaluationTable&quot;: { # Table reference of the evaluation data after split.
1062 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
1063 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
1064 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
1065 },
1066 &quot;trainingTable&quot;: { # Table reference of the training data after split.
1067 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
1068 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
1069 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
1070 },
1071 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001072 },
1073 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001074 &quot;expirationTime&quot;: &quot;A String&quot;, # 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.
1075 &quot;encryptionConfiguration&quot;: { # 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.
1076 &quot;kmsKeyName&quot;: &quot;A String&quot;, # [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.
1077 },
1078 &quot;friendlyName&quot;: &quot;A String&quot;, # Optional. A descriptive name for this model.
1079 &quot;modelType&quot;: &quot;A String&quot;, # Output only. Type of the model resource.
1080 &quot;description&quot;: &quot;A String&quot;, # Optional. A user-friendly description of this model.
1081 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The time when this model was last modified, in millisecs since the epoch.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001082 &quot;labels&quot;: { # 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.
1083 &quot;a_key&quot;: &quot;A String&quot;,
1084 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001085 &quot;labelColumns&quot;: [ # Output only. Label columns that were used to train this model. The output of the model will have a &quot;predicted_&quot; prefix to these columns.
Bu Sun Kim65020912020-05-20 12:08:20 -07001086 { # A field or a column.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001087 &quot;type&quot;: { # The type of a variable, e.g., a function argument. Examples: INT64: {type_kind=&quot;INT64&quot;} ARRAY: {type_kind=&quot;ARRAY&quot;, array_element_type=&quot;STRING&quot;} STRUCT&gt;: {type_kind=&quot;STRUCT&quot;, struct_type={fields=[ {name=&quot;x&quot;, type={type_kind=&quot;STRING&quot;}}, {name=&quot;y&quot;, type={type_kind=&quot;ARRAY&quot;, array_element_type=&quot;DATE&quot;}} ]}} # Optional. The type of this parameter. Absent if not explicitly specified (e.g., CREATE FUNCTION statement can omit the return type; in this case the output parameter does not have this &quot;type&quot; field).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001088 &quot;typeKind&quot;: &quot;A String&quot;, # Required. The top level type of this field. Can be any standard SQL data type (e.g., &quot;INT64&quot;, &quot;DATE&quot;, &quot;ARRAY&quot;).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001089 &quot;arrayElementType&quot;: # Object with schema name: StandardSqlDataType # The type of the array&#x27;s elements, if type_kind = &quot;ARRAY&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001090 &quot;structType&quot;: { # The fields of this struct, in order, if type_kind = &quot;STRUCT&quot;.
1091 &quot;fields&quot;: [
1092 # Object with schema name: StandardSqlField
1093 ],
1094 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001095 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001096 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.
Bu Sun Kim65020912020-05-20 12:08:20 -07001097 },
1098 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001099 &quot;featureColumns&quot;: [ # Output only. Input feature columns that were used to train this model.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001100 { # A field or a column.
1101 &quot;type&quot;: { # The type of a variable, e.g., a function argument. Examples: INT64: {type_kind=&quot;INT64&quot;} ARRAY: {type_kind=&quot;ARRAY&quot;, array_element_type=&quot;STRING&quot;} STRUCT&gt;: {type_kind=&quot;STRUCT&quot;, struct_type={fields=[ {name=&quot;x&quot;, type={type_kind=&quot;STRING&quot;}}, {name=&quot;y&quot;, type={type_kind=&quot;ARRAY&quot;, array_element_type=&quot;DATE&quot;}} ]}} # Optional. The type of this parameter. Absent if not explicitly specified (e.g., CREATE FUNCTION statement can omit the return type; in this case the output parameter does not have this &quot;type&quot; field).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001102 &quot;typeKind&quot;: &quot;A String&quot;, # Required. The top level type of this field. Can be any standard SQL data type (e.g., &quot;INT64&quot;, &quot;DATE&quot;, &quot;ARRAY&quot;).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001103 &quot;arrayElementType&quot;: # Object with schema name: StandardSqlDataType # The type of the array&#x27;s elements, if type_kind = &quot;ARRAY&quot;.
1104 &quot;structType&quot;: { # The fields of this struct, in order, if type_kind = &quot;STRUCT&quot;.
1105 &quot;fields&quot;: [
1106 # Object with schema name: StandardSqlField
1107 ],
1108 },
1109 },
1110 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.
1111 },
1112 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001113 &quot;etag&quot;: &quot;A String&quot;, # Output only. A hash of this resource.
1114 &quot;modelReference&quot;: { # Required. Unique identifier for this model.
1115 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this model.
1116 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this model.
1117 &quot;modelId&quot;: &quot;A String&quot;, # [Required] The ID of the model. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001118 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001119 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The time when this model was created, in millisecs since the epoch.
1120 &quot;location&quot;: &quot;A String&quot;, # Output only. The geographic location where the model resides. This value is inherited from the dataset.
1121 }
1122
1123
1124Returns:
1125 An object of the form:
1126
1127 {
1128 &quot;trainingRuns&quot;: [ # Output only. Information for all training runs in increasing order of start_time.
1129 { # Information about a single training query run for the model.
1130 &quot;startTime&quot;: &quot;A String&quot;, # The start time of this training run.
1131 &quot;globalExplanations&quot;: [ # Global explanations for important features of the model. For multi-class models, there is one entry for each label class. For other models, there is only one entry in the list.
1132 { # Global explanations containing the top most important features after training.
1133 &quot;classLabel&quot;: &quot;A String&quot;, # Class label for this set of global explanations. Will be empty/null for binary logistic and linear regression models. Sorted alphabetically in descending order.
1134 &quot;explanations&quot;: [ # A list of the top global explanations. Sorted by absolute value of attribution in descending order.
1135 { # Explanation for a single feature.
1136 &quot;attribution&quot;: 3.14, # Attribution of feature.
1137 &quot;featureName&quot;: &quot;A String&quot;, # Full name of the feature. For non-numerical features, will be formatted like .. Overall size of feature name will always be truncated to first 120 characters.
1138 },
1139 ],
1140 },
1141 ],
1142 &quot;trainingOptions&quot;: { # Options that were used for this training run, includes user specified and default options that were used.
1143 &quot;labelClassWeights&quot;: { # Weights associated with each label class, for rebalancing the training data. Only applicable for classification models.
1144 &quot;a_key&quot;: 3.14,
1145 },
1146 &quot;distanceType&quot;: &quot;A String&quot;, # Distance type for clustering models.
1147 &quot;hiddenUnits&quot;: [ # Hidden units for dnn models.
1148 &quot;A String&quot;,
1149 ],
1150 &quot;holidayRegion&quot;: &quot;A String&quot;, # The geographical region based on which the holidays are considered in time series modeling. If a valid value is specified, then holiday effects modeling is enabled.
1151 &quot;numFactors&quot;: &quot;A String&quot;, # Num factors specified for matrix factorization models.
1152 &quot;preserveInputStructs&quot;: True or False, # Whether to preserve the input structs in output feature names. Suppose there is a struct A with field b. When false (default), the output feature name is A_b. When true, the output feature name is A.b.
1153 &quot;dataSplitColumn&quot;: &quot;A String&quot;, # The column to split data with. This column won&#x27;t be used as a feature. 1. When data_split_method is CUSTOM, the corresponding column should be boolean. The rows with true value tag are eval data, and the false are training data. 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION rows (from smallest to largest) in the corresponding column are used as training data, and the rest are eval data. It respects the order in Orderable data types: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data-type-properties
1154 &quot;includeDrift&quot;: True or False, # Include drift when fitting an ARIMA model.
1155 &quot;horizon&quot;: &quot;A String&quot;, # The number of periods ahead that need to be forecasted.
1156 &quot;learnRate&quot;: 3.14, # Learning rate in training. Used only for iterative training algorithms.
1157 &quot;l1Regularization&quot;: 3.14, # L1 regularization coefficient.
1158 &quot;inputLabelColumns&quot;: [ # Name of input label columns in training data.
1159 &quot;A String&quot;,
1160 ],
1161 &quot;maxTreeDepth&quot;: &quot;A String&quot;, # Maximum depth of a tree for boosted tree models.
1162 &quot;dataSplitMethod&quot;: &quot;A String&quot;, # The data split type for training and evaluation, e.g. RANDOM.
1163 &quot;kmeansInitializationMethod&quot;: &quot;A String&quot;, # The method used to initialize the centroids for kmeans algorithm.
1164 &quot;earlyStop&quot;: True or False, # Whether to stop early when the loss doesn&#x27;t improve significantly any more (compared to min_relative_progress). Used only for iterative training algorithms.
1165 &quot;lossType&quot;: &quot;A String&quot;, # Type of loss function used during training run.
1166 &quot;timeSeriesDataColumn&quot;: &quot;A String&quot;, # Column to be designated as time series data for ARIMA model.
1167 &quot;optimizationStrategy&quot;: &quot;A String&quot;, # Optimization strategy for training linear regression models.
1168 &quot;minRelativeProgress&quot;: 3.14, # When early_stop is true, stops training when accuracy improvement is less than &#x27;min_relative_progress&#x27;. Used only for iterative training algorithms.
1169 &quot;l2Regularization&quot;: 3.14, # L2 regularization coefficient.
1170 &quot;feedbackType&quot;: &quot;A String&quot;, # Feedback type that specifies which algorithm to run for matrix factorization.
1171 &quot;itemColumn&quot;: &quot;A String&quot;, # Item column specified for matrix factorization models.
1172 &quot;minSplitLoss&quot;: 3.14, # Minimum split loss for boosted tree models.
1173 &quot;timeSeriesTimestampColumn&quot;: &quot;A String&quot;, # Column to be designated as time series timestamp for ARIMA model.
1174 &quot;modelUri&quot;: &quot;A String&quot;, # [Beta] Google Cloud Storage URI from which the model was imported. Only applicable for imported models.
1175 &quot;learnRateStrategy&quot;: &quot;A String&quot;, # The strategy to determine learn rate for the current iteration.
1176 &quot;walsAlpha&quot;: 3.14, # Hyperparameter for matrix factoration when implicit feedback type is specified.
1177 &quot;timeSeriesIdColumn&quot;: &quot;A String&quot;, # The id column that will be used to indicate different time series to forecast in parallel.
1178 &quot;subsample&quot;: 3.14, # Subsample fraction of the training data to grow tree to prevent overfitting for boosted tree models.
1179 &quot;numClusters&quot;: &quot;A String&quot;, # Number of clusters for clustering models.
1180 &quot;dataSplitEvalFraction&quot;: 3.14, # The fraction of evaluation data over the whole input data. The rest of data will be used as training data. The format should be double. Accurate to two decimal places. Default value is 0.2.
1181 &quot;autoArimaMaxOrder&quot;: &quot;A String&quot;, # The max value of non-seasonal p and q.
1182 &quot;dropout&quot;: 3.14, # Dropout probability for dnn models.
1183 &quot;nonSeasonalOrder&quot;: { # Arima order, can be used for both non-seasonal and seasonal parts. # A specification of the non-seasonal part of the ARIMA model: the three components (p, d, q) are the AR order, the degree of differencing, and the MA order.
1184 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
1185 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
1186 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
1187 },
1188 &quot;dataFrequency&quot;: &quot;A String&quot;, # The data frequency of a time series.
1189 &quot;maxIterations&quot;: &quot;A String&quot;, # The maximum number of iterations in training. Used only for iterative training algorithms.
1190 &quot;userColumn&quot;: &quot;A String&quot;, # User column specified for matrix factorization models.
1191 &quot;kmeansInitializationColumn&quot;: &quot;A String&quot;, # The column used to provide the initial centroids for kmeans algorithm when kmeans_initialization_method is CUSTOM.
1192 &quot;autoArima&quot;: True or False, # Whether to enable auto ARIMA or not.
1193 &quot;initialLearnRate&quot;: 3.14, # Specifies the initial learning rate for the line search learn rate strategy.
1194 &quot;warmStart&quot;: True or False, # Whether to train a model from the last checkpoint.
1195 &quot;batchSize&quot;: &quot;A String&quot;, # Batch size for dnn models.
1196 },
1197 &quot;results&quot;: [ # Output of each iteration run, results.size() &lt;= max_iterations.
1198 { # Information about a single iteration of the training run.
1199 &quot;trainingLoss&quot;: 3.14, # Loss computed on the training data at the end of iteration.
1200 &quot;arimaResult&quot;: { # (Auto-)arima fitting result. Wrap everything in ArimaResult for easier refactoring if we want to use model-specific iteration results.
1201 &quot;arimaModelInfo&quot;: [ # This message is repeated because there are multiple arima models fitted in auto-arima. For non-auto-arima model, its size is one.
1202 { # Arima model information.
1203 &quot;hasDrift&quot;: True or False, # Whether Arima model fitted with drift or not. It is always false when d is not 1.
1204 &quot;arimaFittingMetrics&quot;: { # ARIMA model fitting metrics. # Arima fitting metrics.
1205 &quot;variance&quot;: 3.14, # Variance.
1206 &quot;aic&quot;: 3.14, # AIC.
1207 &quot;logLikelihood&quot;: 3.14, # Log-likelihood.
1208 },
1209 &quot;arimaCoefficients&quot;: { # Arima coefficients. # Arima coefficients.
1210 &quot;interceptCoefficient&quot;: 3.14, # Intercept coefficient, just a double not an array.
1211 &quot;autoRegressiveCoefficients&quot;: [ # Auto-regressive coefficients, an array of double.
1212 3.14,
1213 ],
1214 &quot;movingAverageCoefficients&quot;: [ # Moving-average coefficients, an array of double.
1215 3.14,
1216 ],
1217 },
1218 &quot;nonSeasonalOrder&quot;: { # Arima order, can be used for both non-seasonal and seasonal parts. # Non-seasonal order.
1219 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
1220 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
1221 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
1222 },
1223 &quot;timeSeriesId&quot;: &quot;A String&quot;, # The id to indicate different time series.
1224 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
1225 &quot;A String&quot;,
1226 ],
1227 },
1228 ],
1229 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
1230 &quot;A String&quot;,
1231 ],
1232 },
1233 &quot;clusterInfos&quot;: [ # Information about top clusters for clustering models.
1234 { # Information about a single cluster for clustering model.
1235 &quot;clusterSize&quot;: &quot;A String&quot;, # Cluster size, the total number of points assigned to the cluster.
1236 &quot;clusterRadius&quot;: 3.14, # Cluster radius, the average distance from centroid to each point assigned to the cluster.
1237 &quot;centroidId&quot;: &quot;A String&quot;, # Centroid id.
1238 },
1239 ],
1240 &quot;durationMs&quot;: &quot;A String&quot;, # Time taken to run the iteration in milliseconds.
1241 &quot;learnRate&quot;: 3.14, # Learn rate used for this iteration.
1242 &quot;index&quot;: 42, # Index of the iteration, 0 based.
1243 &quot;evalLoss&quot;: 3.14, # Loss computed on the eval data at the end of iteration.
1244 },
1245 ],
1246 &quot;evaluationMetrics&quot;: { # Evaluation metrics of a model. These are either computed on all training data or just the eval data based on whether eval data was used during training. These are not present for imported models. # The evaluation metrics over training/eval data that were computed at the end of training.
1247 &quot;multiClassClassificationMetrics&quot;: { # Evaluation metrics for multi-class classification/classifier models. # Populated for multi-class classification/classifier models.
1248 &quot;aggregateClassificationMetrics&quot;: { # Aggregate metrics for classification/classifier models. For multi-class models, the metrics are either macro-averaged or micro-averaged. When macro-averaged, the metrics are calculated for each label and then an unweighted average is taken of those values. When micro-averaged, the metric is calculated globally by counting the total number of correctly predicted rows. # Aggregate classification metrics.
1249 &quot;accuracy&quot;: 3.14, # Accuracy is the fraction of predictions given the correct label. For multiclass this is a micro-averaged metric.
1250 &quot;logLoss&quot;: 3.14, # Logarithmic Loss. For multiclass this is a macro-averaged metric.
1251 &quot;rocAuc&quot;: 3.14, # Area Under a ROC Curve. For multiclass this is a macro-averaged metric.
1252 &quot;precision&quot;: 3.14, # Precision is the fraction of actual positive predictions that had positive actual labels. For multiclass this is a macro-averaged metric treating each class as a binary classifier.
1253 &quot;f1Score&quot;: 3.14, # The F1 score is an average of recall and precision. For multiclass this is a macro-averaged metric.
1254 &quot;threshold&quot;: 3.14, # Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classfication models this is the confidence threshold.
1255 &quot;recall&quot;: 3.14, # Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.
1256 },
1257 &quot;confusionMatrixList&quot;: [ # Confusion matrix at different thresholds.
1258 { # Confusion matrix for multi-class classification models.
1259 &quot;confidenceThreshold&quot;: 3.14, # Confidence threshold used when computing the entries of the confusion matrix.
1260 &quot;rows&quot;: [ # One row per actual label.
1261 { # A single row in the confusion matrix.
1262 &quot;entries&quot;: [ # Info describing predicted label distribution.
1263 { # A single entry in the confusion matrix.
1264 &quot;itemCount&quot;: &quot;A String&quot;, # Number of items being predicted as this label.
1265 &quot;predictedLabel&quot;: &quot;A String&quot;, # The predicted label. For confidence_threshold &gt; 0, we will also add an entry indicating the number of items under the confidence threshold.
1266 },
1267 ],
1268 &quot;actualLabel&quot;: &quot;A String&quot;, # The original label of this row.
1269 },
1270 ],
1271 },
1272 ],
1273 },
1274 &quot;binaryClassificationMetrics&quot;: { # Evaluation metrics for binary classification/classifier models. # Populated for binary classification/classifier models.
1275 &quot;aggregateClassificationMetrics&quot;: { # Aggregate metrics for classification/classifier models. For multi-class models, the metrics are either macro-averaged or micro-averaged. When macro-averaged, the metrics are calculated for each label and then an unweighted average is taken of those values. When micro-averaged, the metric is calculated globally by counting the total number of correctly predicted rows. # Aggregate classification metrics.
1276 &quot;accuracy&quot;: 3.14, # Accuracy is the fraction of predictions given the correct label. For multiclass this is a micro-averaged metric.
1277 &quot;logLoss&quot;: 3.14, # Logarithmic Loss. For multiclass this is a macro-averaged metric.
1278 &quot;rocAuc&quot;: 3.14, # Area Under a ROC Curve. For multiclass this is a macro-averaged metric.
1279 &quot;precision&quot;: 3.14, # Precision is the fraction of actual positive predictions that had positive actual labels. For multiclass this is a macro-averaged metric treating each class as a binary classifier.
1280 &quot;f1Score&quot;: 3.14, # The F1 score is an average of recall and precision. For multiclass this is a macro-averaged metric.
1281 &quot;threshold&quot;: 3.14, # Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classfication models this is the confidence threshold.
1282 &quot;recall&quot;: 3.14, # Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.
1283 },
1284 &quot;positiveLabel&quot;: &quot;A String&quot;, # Label representing the positive class.
1285 &quot;negativeLabel&quot;: &quot;A String&quot;, # Label representing the negative class.
1286 &quot;binaryConfusionMatrixList&quot;: [ # Binary confusion matrix at multiple thresholds.
1287 { # Confusion matrix for binary classification models.
1288 &quot;precision&quot;: 3.14, # The fraction of actual positive predictions that had positive actual labels.
1289 &quot;accuracy&quot;: 3.14, # The fraction of predictions given the correct label.
1290 &quot;truePositives&quot;: &quot;A String&quot;, # Number of true samples predicted as true.
1291 &quot;f1Score&quot;: 3.14, # The equally weighted average of recall and precision.
1292 &quot;recall&quot;: 3.14, # The fraction of actual positive labels that were given a positive prediction.
1293 &quot;falsePositives&quot;: &quot;A String&quot;, # Number of false samples predicted as true.
1294 &quot;positiveClassThreshold&quot;: 3.14, # Threshold value used when computing each of the following metric.
1295 &quot;falseNegatives&quot;: &quot;A String&quot;, # Number of false samples predicted as false.
1296 &quot;trueNegatives&quot;: &quot;A String&quot;, # Number of true samples predicted as false.
1297 },
1298 ],
1299 },
1300 &quot;arimaForecastingMetrics&quot;: { # Model evaluation metrics for ARIMA forecasting models. # Populated for ARIMA models.
1301 &quot;timeSeriesId&quot;: [ # Id to differentiate different time series for the large-scale case.
1302 &quot;A String&quot;,
1303 ],
1304 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
1305 &quot;A String&quot;,
1306 ],
1307 &quot;hasDrift&quot;: [ # Whether Arima model fitted with drift or not. It is always false when d is not 1.
1308 True or False,
1309 ],
1310 &quot;arimaFittingMetrics&quot;: [ # Arima model fitting metrics.
1311 { # ARIMA model fitting metrics.
1312 &quot;variance&quot;: 3.14, # Variance.
1313 &quot;aic&quot;: 3.14, # AIC.
1314 &quot;logLikelihood&quot;: 3.14, # Log-likelihood.
1315 },
1316 ],
1317 &quot;arimaSingleModelForecastingMetrics&quot;: [ # Repeated as there can be many metric sets (one for each model) in auto-arima and the large-scale case.
1318 { # Model evaluation metrics for a single ARIMA forecasting model.
1319 &quot;timeSeriesId&quot;: &quot;A String&quot;, # The id to indicate different time series.
1320 &quot;arimaFittingMetrics&quot;: { # ARIMA model fitting metrics. # Arima fitting metrics.
1321 &quot;variance&quot;: 3.14, # Variance.
1322 &quot;aic&quot;: 3.14, # AIC.
1323 &quot;logLikelihood&quot;: 3.14, # Log-likelihood.
1324 },
1325 &quot;seasonalPeriods&quot;: [ # Seasonal periods. Repeated because multiple periods are supported for one time series.
1326 &quot;A String&quot;,
1327 ],
1328 &quot;hasDrift&quot;: True or False, # Is arima model fitted with drift or not. It is always false when d is not 1.
1329 &quot;nonSeasonalOrder&quot;: { # Arima order, can be used for both non-seasonal and seasonal parts. # Non-seasonal order.
1330 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
1331 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
1332 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
1333 },
1334 },
1335 ],
1336 &quot;nonSeasonalOrder&quot;: [ # Non-seasonal order.
1337 { # Arima order, can be used for both non-seasonal and seasonal parts.
1338 &quot;d&quot;: &quot;A String&quot;, # Order of the differencing part.
1339 &quot;q&quot;: &quot;A String&quot;, # Order of the moving-average part.
1340 &quot;p&quot;: &quot;A String&quot;, # Order of the autoregressive part.
1341 },
1342 ],
1343 },
1344 &quot;clusteringMetrics&quot;: { # Evaluation metrics for clustering models. # Populated for clustering models.
1345 &quot;daviesBouldinIndex&quot;: 3.14, # Davies-Bouldin index.
1346 &quot;meanSquaredDistance&quot;: 3.14, # Mean of squared distances between each sample to its cluster centroid.
1347 &quot;clusters&quot;: [ # [Beta] Information for all clusters.
1348 { # Message containing the information about one cluster.
1349 &quot;centroidId&quot;: &quot;A String&quot;, # Centroid id.
1350 &quot;featureValues&quot;: [ # Values of highly variant features for this cluster.
1351 { # Representative value of a single feature within the cluster.
1352 &quot;categoricalValue&quot;: { # Representative value of a categorical feature. # The categorical feature value.
1353 &quot;categoryCounts&quot;: [ # Counts of all categories for the categorical feature. If there are more than ten categories, we return top ten (by count) and return one more CategoryCount with category &quot;_OTHER_&quot; and count as aggregate counts of remaining categories.
1354 { # Represents the count of a single category within the cluster.
1355 &quot;count&quot;: &quot;A String&quot;, # The count of training samples matching the category within the cluster.
1356 &quot;category&quot;: &quot;A String&quot;, # The name of category.
1357 },
1358 ],
1359 },
1360 &quot;featureColumn&quot;: &quot;A String&quot;, # The feature column name.
1361 &quot;numericalValue&quot;: 3.14, # The numerical feature value. This is the centroid value for this feature.
1362 },
1363 ],
1364 &quot;count&quot;: &quot;A String&quot;, # Count of training data rows that were assigned to this cluster.
1365 },
1366 ],
1367 },
1368 &quot;regressionMetrics&quot;: { # Evaluation metrics for regression and explicit feedback type matrix factorization models. # Populated for regression models and explicit feedback type matrix factorization models.
1369 &quot;meanSquaredLogError&quot;: 3.14, # Mean squared log error.
1370 &quot;meanSquaredError&quot;: 3.14, # Mean squared error.
1371 &quot;rSquared&quot;: 3.14, # R^2 score.
1372 &quot;meanAbsoluteError&quot;: 3.14, # Mean absolute error.
1373 &quot;medianAbsoluteError&quot;: 3.14, # Median absolute error.
1374 },
1375 &quot;rankingMetrics&quot;: { # Evaluation metrics used by weighted-ALS models specified by feedback_type=implicit. # Populated for implicit feedback type matrix factorization models.
1376 &quot;meanAveragePrecision&quot;: 3.14, # Calculates a precision per user for all the items by ranking them and then averages all the precisions across all the users.
1377 &quot;meanSquaredError&quot;: 3.14, # Similar to the mean squared error computed in regression and explicit recommendation models except instead of computing the rating directly, the output from evaluate is computed against a preference which is 1 or 0 depending on if the rating exists or not.
1378 &quot;averageRank&quot;: 3.14, # Determines the goodness of a ranking by computing the percentile rank from the predicted confidence and dividing it by the original rank.
1379 &quot;normalizedDiscountedCumulativeGain&quot;: 3.14, # A metric to determine the goodness of a ranking calculated from the predicted confidence by comparing it to an ideal rank measured by the original ratings.
1380 },
1381 },
1382 &quot;dataSplitResult&quot;: { # Data split result. This contains references to the training and evaluation data tables that were used to train the model. # Data split result of the training run. Only set when the input data is actually split.
1383 &quot;evaluationTable&quot;: { # Table reference of the evaluation data after split.
1384 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
1385 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
1386 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
1387 },
1388 &quot;trainingTable&quot;: { # Table reference of the training data after split.
1389 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
1390 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
1391 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
1392 },
1393 },
1394 },
1395 ],
1396 &quot;expirationTime&quot;: &quot;A String&quot;, # 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.
1397 &quot;encryptionConfiguration&quot;: { # 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.
1398 &quot;kmsKeyName&quot;: &quot;A String&quot;, # [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.
1399 },
1400 &quot;friendlyName&quot;: &quot;A String&quot;, # Optional. A descriptive name for this model.
1401 &quot;modelType&quot;: &quot;A String&quot;, # Output only. Type of the model resource.
1402 &quot;description&quot;: &quot;A String&quot;, # Optional. A user-friendly description of this model.
1403 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The time when this model was last modified, in millisecs since the epoch.
1404 &quot;labels&quot;: { # 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.
1405 &quot;a_key&quot;: &quot;A String&quot;,
1406 },
1407 &quot;labelColumns&quot;: [ # Output only. Label columns that were used to train this model. The output of the model will have a &quot;predicted_&quot; prefix to these columns.
1408 { # A field or a column.
1409 &quot;type&quot;: { # The type of a variable, e.g., a function argument. Examples: INT64: {type_kind=&quot;INT64&quot;} ARRAY: {type_kind=&quot;ARRAY&quot;, array_element_type=&quot;STRING&quot;} STRUCT&gt;: {type_kind=&quot;STRUCT&quot;, struct_type={fields=[ {name=&quot;x&quot;, type={type_kind=&quot;STRING&quot;}}, {name=&quot;y&quot;, type={type_kind=&quot;ARRAY&quot;, array_element_type=&quot;DATE&quot;}} ]}} # Optional. The type of this parameter. Absent if not explicitly specified (e.g., CREATE FUNCTION statement can omit the return type; in this case the output parameter does not have this &quot;type&quot; field).
1410 &quot;typeKind&quot;: &quot;A String&quot;, # Required. The top level type of this field. Can be any standard SQL data type (e.g., &quot;INT64&quot;, &quot;DATE&quot;, &quot;ARRAY&quot;).
1411 &quot;arrayElementType&quot;: # Object with schema name: StandardSqlDataType # The type of the array&#x27;s elements, if type_kind = &quot;ARRAY&quot;.
1412 &quot;structType&quot;: { # The fields of this struct, in order, if type_kind = &quot;STRUCT&quot;.
1413 &quot;fields&quot;: [
1414 # Object with schema name: StandardSqlField
1415 ],
1416 },
1417 },
1418 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.
1419 },
1420 ],
1421 &quot;featureColumns&quot;: [ # Output only. Input feature columns that were used to train this model.
1422 { # A field or a column.
1423 &quot;type&quot;: { # The type of a variable, e.g., a function argument. Examples: INT64: {type_kind=&quot;INT64&quot;} ARRAY: {type_kind=&quot;ARRAY&quot;, array_element_type=&quot;STRING&quot;} STRUCT&gt;: {type_kind=&quot;STRUCT&quot;, struct_type={fields=[ {name=&quot;x&quot;, type={type_kind=&quot;STRING&quot;}}, {name=&quot;y&quot;, type={type_kind=&quot;ARRAY&quot;, array_element_type=&quot;DATE&quot;}} ]}} # Optional. The type of this parameter. Absent if not explicitly specified (e.g., CREATE FUNCTION statement can omit the return type; in this case the output parameter does not have this &quot;type&quot; field).
1424 &quot;typeKind&quot;: &quot;A String&quot;, # Required. The top level type of this field. Can be any standard SQL data type (e.g., &quot;INT64&quot;, &quot;DATE&quot;, &quot;ARRAY&quot;).
1425 &quot;arrayElementType&quot;: # Object with schema name: StandardSqlDataType # The type of the array&#x27;s elements, if type_kind = &quot;ARRAY&quot;.
1426 &quot;structType&quot;: { # The fields of this struct, in order, if type_kind = &quot;STRUCT&quot;.
1427 &quot;fields&quot;: [
1428 # Object with schema name: StandardSqlField
1429 ],
1430 },
1431 },
1432 &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.
1433 },
1434 ],
1435 &quot;etag&quot;: &quot;A String&quot;, # Output only. A hash of this resource.
1436 &quot;modelReference&quot;: { # Required. Unique identifier for this model.
1437 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this model.
1438 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this model.
1439 &quot;modelId&quot;: &quot;A String&quot;, # [Required] The ID of the model. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
1440 },
1441 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The time when this model was created, in millisecs since the epoch.
1442 &quot;location&quot;: &quot;A String&quot;, # Output only. The geographic location where the model resides. This value is inherited from the dataset.
1443 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001444</div>
1445
1446</body></html>