Get desktop application:
View/edit binary Protocol Buffers messages
Gets the specified model resource by model ID.
Required. Project ID of the requested model.
Required. Dataset ID of the requested model.
Required. Model ID of the requested model.
Lists all models in the specified dataset. Requires the READER dataset role.
Required. Project ID of the models to list.
Required. Dataset ID of the models to list.
The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.
Page token, returned by a previous call to request the next page of results
Models in the requested dataset. Only the following fields are populated: model_reference, model_type, creation_time, last_modified_time and labels.
A token to request the next page of results.
Patch specific fields in the specified model.
Required. Project ID of the model to patch.
Required. Dataset ID of the model to patch.
Required. Model ID of the model to patch.
Required. Patched model. Follows RFC5789 patch semantics. Missing fields are not updated. To clear a field, explicitly set to default value.
Deletes the model specified by modelId from the dataset.
Required. Project ID of the model to delete.
Required. Dataset ID of the model to delete.
Required. Model ID of the model to delete.
Used in:
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.
Used as response type in: ModelService.GetModel, ModelService.PatchModel
Used as field type in:
,Output only. A hash of this resource.
Required. Unique identifier for this model.
Output only. The time when this model was created, in millisecs since the epoch.
Output only. The time when this model was last modified, in millisecs since the epoch.
Optional. A user-friendly description of this model.
Optional. A descriptive name for this model.
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.
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.
Output only. The geographic location where the model resides. This value is inherited from the dataset.
Custom encryption configuration (e.g., Cloud KMS keys). This shows the encryption configuration of the model data while stored in BigQuery storage.
Output only. Type of the model resource.
Output only. Information for all training runs in increasing order of start_time.
Output only. Input feature columns that were used to train this model.
Output only. Label columns that were used to train this model. The output of the model will have a "predicted_" prefix to these columns.
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.
Used in:
,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.
Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.
Accuracy is the fraction of predictions given the correct label. For multiclass this is a micro-averaged metric.
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.
The F1 score is an average of recall and precision. For multiclass this is a macro-averaged metric.
Logarithmic Loss. For multiclass this is a macro-averaged metric.
Area Under a ROC Curve. For multiclass this is a macro-averaged metric.
Evaluation metrics for binary classification/classifier models.
Used in:
Aggregate classification metrics.
Binary confusion matrix at multiple thresholds.
Label representing the positive class.
Label representing the negative class.
Confusion matrix for binary classification models.
Used in:
Threshold value used when computing each of the following metric.
Number of true samples predicted as true.
Number of false samples predicted as true.
Number of true samples predicted as false.
Number of false samples predicted as false.
The fraction of actual positive predictions that had positive actual labels.
The fraction of actual positive labels that were given a positive prediction.
The equally weighted average of recall and precision.
The fraction of predictions given the correct label.
Evaluation metrics for clustering models.
Used in:
Davies-Bouldin index.
Mean of squared distances between each sample to its cluster centroid.
[Beta] Information for all clusters.
Message containing the information about one cluster.
Used in:
Centroid id.
Values of highly variant features for this cluster.
Count of training data rows that were assigned to this cluster.
Representative value of a single feature within the cluster.
Used in:
The feature column name.
The numerical feature value. This is the centroid value for this feature.
The categorical feature value.
Representative value of a categorical feature.
Used in:
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 "_OTHER_" and count as aggregate counts of remaining categories.
Represents the count of a single category within the cluster.
Used in:
The name of category.
The count of training samples matching the category within the cluster.
Indicates the method to split input data into multiple tables.
Used in:
Splits data randomly.
Splits data with the user provided tags.
Splits data sequentially.
Data split will be skipped.
Splits data automatically: Uses NO_SPLIT if the data size is small. Otherwise uses RANDOM.
Distance metric used to compute the distance between two points.
Used in:
Eculidean distance.
Cosine distance.
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.
Used in:
Populated for regression models and explicit feedback type matrix factorization models.
Populated for binary classification/classifier models.
Populated for multi-class classification/classifier models.
Populated for clustering models.
(message has no fields)
Indicates the method used to initialize the centroids for KMeans clustering algorithm.
Used in:
Initializes the centroids randomly.
Initializes the centroids using data specified in kmeans_initialization_column.
Indicates the learning rate optimization strategy to use.
Used in:
Use line search to determine learning rate.
Use a constant learning rate.
Loss metric to evaluate model training performance.
Used in:
Mean squared loss, used for linear regression.
Mean log loss, used for logistic regression.
Indicates the type of the Model.
Used in:
Linear regression model.
Logistic regression based classification model.
K-means clustering model.
[Beta] An imported TensorFlow model.
Evaluation metrics for multi-class classification/classifier models.
Used in:
Aggregate classification metrics.
Confusion matrix at different thresholds.
Confusion matrix for multi-class classification models.
Used in:
Confidence threshold used when computing the entries of the confusion matrix.
One row per actual label.
A single entry in the confusion matrix.
Used in:
The predicted label. For confidence_threshold > 0, we will also add an entry indicating the number of items under the confidence threshold.
Number of items being predicted as this label.
A single row in the confusion matrix.
Used in:
The original label of this row.
Info describing predicted label distribution.
Indicates the optimization strategy used for training.
Used in:
Uses an iterative batch gradient descent algorithm.
Uses a normal equation to solve linear regression problem.
Evaluation metrics for regression and explicit feedback type matrix factorization models.
Used in:
Mean absolute error.
Mean squared error.
Mean squared log error.
Median absolute error.
R^2 score.
Information about a single training query run for the model.
Used in:
Options that were used for this training run, includes user specified and default options that were used.
The start time of this training run.
Output of each iteration run, results.size() <= max_iterations.
The evaluation metrics over training/eval data that were computed at the end of training.
Information about a single iteration of the training run.
Used in:
Index of the iteration, 0 based.
Time taken to run the iteration in milliseconds.
Loss computed on the training data at the end of iteration.
Loss computed on the eval data at the end of iteration.
Learn rate used for this iteration.
Information about top clusters for clustering models.
Information about a single cluster for clustering model.
Used in:
Centroid id.
Cluster radius, the average distance from centroid to each point assigned to the cluster.
Cluster size, the total number of points assigned to the cluster.
Used in:
The maximum number of iterations in training. Used only for iterative training algorithms.
Type of loss function used during training run.
Learning rate in training. Used only for iterative training algorithms.
L1 regularization coefficient.
L2 regularization coefficient.
When early_stop is true, stops training when accuracy improvement is less than 'min_relative_progress'. Used only for iterative training algorithms.
Whether to train a model from the last checkpoint.
Whether to stop early when the loss doesn't improve significantly any more (compared to min_relative_progress). Used only for iterative training algorithms.
Name of input label columns in training data.
The data split type for training and evaluation, e.g. RANDOM.
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.
The column to split data with. This column won'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
The strategy to determine learn rate for the current iteration.
Specifies the initial learning rate for the line search learn rate strategy.
Weights associated with each label class, for rebalancing the training data. Only applicable for classification models.
Distance type for clustering models.
Number of clusters for clustering models.
[Beta] Google Cloud Storage URI from which the model was imported. Only applicable for imported models.
Optimization strategy for training linear regression models.
The method used to initialize the centroids for kmeans algorithm.
The column used to provide the initial centroids for kmeans algorithm when kmeans_initialization_method is CUSTOM.
Id path of a model.
Used in:
Required. The ID of the project containing this model.
Required. The ID of the dataset containing this model.
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.
The type of a variable, e.g., a function argument. Examples: INT64: {type_kind="INT64"} ARRAY<STRING>: {type_kind="ARRAY", array_element_type="STRING"} STRUCT<x STRING, y ARRAY<DATE>>: {type_kind="STRUCT", struct_type={fields=[ {name="x", type={type_kind="STRING"}}, {name="y", type={type_kind="ARRAY", array_element_type="DATE"}} ]}}
Used in:
Required. The top level type of this field. Can be any standard SQL data type (e.g., "INT64", "DATE", "ARRAY").
The type of the array's elements, if type_kind = "ARRAY".
The fields of this struct, in order, if type_kind = "STRUCT".
Used in:
Invalid type.
Encoded as a string in decimal format.
Encoded as a boolean "false" or "true".
Encoded as a number, or string "NaN", "Infinity" or "-Infinity".
Encoded as a string value.
Encoded as a base64 string per RFC 4648, section 4.
Encoded as an RFC 3339 timestamp with mandatory "Z" time zone string: 1985-04-12T23:20:50.52Z
Encoded as RFC 3339 full-date format string: 1985-04-12
Encoded as RFC 3339 partial-time format string: 23:20:50.52
Encoded as RFC 3339 full-date "T" partial-time: 1985-04-12T23:20:50.52
Encoded as WKT
Encoded as a decimal string.
Encoded as a list with types matching Type.array_type.
Encoded as a list with fields of type Type.struct_type[i]. List is used because a JSON object cannot have duplicate field names.
A field or a column.
Used in:
,Optional. The name of this field. Can be absent for struct fields.
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 "type" field).
Used in: