ETag for the model resource (:data:None until set from the server).
Read-only.
expires
The datetime when this model expires.
If not present, the model will persist indefinitely. Expired models will be
deleted and their storage reclaimed.
feature_columns
Input feature columns that were used to train this model.
Read-only.
friendly_name
Title of the table (defaults to :data:None).
label_columns
Label columns that were used to train this model.
The output of the model will have a predicted_ prefix to these columns.
Read-only.
labels
Labels for the table.
This method always returns a dict. To change a model's labels, modify the dict,
then call Client.update_model. To delete a label, set its value to
:data:None before updating.
location
The geographic location where the model resides.
This value is inherited from the dataset.
Read-only.
model_id
The model ID.
model_type
Type of the model resource.
Read-only.
modified
Datetime at which the model was last modified (:data:None until set from the server).
Read-only.
path
URL path for the model's APIs.
project
Project bound to the model.
reference
A model reference pointing to this model.
Read-only.
training_runs
Information for all training runs in increasing order of start time.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class Model (3.36.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.36.0 (latest)](/python/docs/reference/bigquery/latest/google.cloud.bigquery.model.Model)\n- [3.35.1](/python/docs/reference/bigquery/3.35.1/google.cloud.bigquery.model.Model)\n- [3.34.0](/python/docs/reference/bigquery/3.34.0/google.cloud.bigquery.model.Model)\n- [3.33.0](/python/docs/reference/bigquery/3.33.0/google.cloud.bigquery.model.Model)\n- [3.31.0](/python/docs/reference/bigquery/3.31.0/google.cloud.bigquery.model.Model)\n- [3.30.0](/python/docs/reference/bigquery/3.30.0/google.cloud.bigquery.model.Model)\n- [3.29.0](/python/docs/reference/bigquery/3.29.0/google.cloud.bigquery.model.Model)\n- [3.27.0](/python/docs/reference/bigquery/3.27.0/google.cloud.bigquery.model.Model)\n- [3.26.0](/python/docs/reference/bigquery/3.26.0/google.cloud.bigquery.model.Model)\n- [3.25.0](/python/docs/reference/bigquery/3.25.0/google.cloud.bigquery.model.Model)\n- [3.24.0](/python/docs/reference/bigquery/3.24.0/google.cloud.bigquery.model.Model)\n- [3.23.1](/python/docs/reference/bigquery/3.23.1/google.cloud.bigquery.model.Model)\n- [3.22.0](/python/docs/reference/bigquery/3.22.0/google.cloud.bigquery.model.Model)\n- [3.21.0](/python/docs/reference/bigquery/3.21.0/google.cloud.bigquery.model.Model)\n- [3.20.1](/python/docs/reference/bigquery/3.20.1/google.cloud.bigquery.model.Model)\n- [3.19.0](/python/docs/reference/bigquery/3.19.0/google.cloud.bigquery.model.Model)\n- [3.18.0](/python/docs/reference/bigquery/3.18.0/google.cloud.bigquery.model.Model)\n- [3.17.2](/python/docs/reference/bigquery/3.17.2/google.cloud.bigquery.model.Model)\n- [3.16.0](/python/docs/reference/bigquery/3.16.0/google.cloud.bigquery.model.Model)\n- [3.15.0](/python/docs/reference/bigquery/3.15.0/google.cloud.bigquery.model.Model)\n- [3.14.1](/python/docs/reference/bigquery/3.14.1/google.cloud.bigquery.model.Model)\n- [3.13.0](/python/docs/reference/bigquery/3.13.0/google.cloud.bigquery.model.Model)\n- [3.12.0](/python/docs/reference/bigquery/3.12.0/google.cloud.bigquery.model.Model)\n- [3.11.4](/python/docs/reference/bigquery/3.11.4/google.cloud.bigquery.model.Model)\n- [3.4.0](/python/docs/reference/bigquery/3.4.0/google.cloud.bigquery.model.Model)\n- [3.3.6](/python/docs/reference/bigquery/3.3.6/google.cloud.bigquery.model.Model)\n- [3.2.0](/python/docs/reference/bigquery/3.2.0/google.cloud.bigquery.model.Model)\n- [3.1.0](/python/docs/reference/bigquery/3.1.0/google.cloud.bigquery.model.Model)\n- [3.0.1](/python/docs/reference/bigquery/3.0.1/google.cloud.bigquery.model.Model)\n- [2.34.4](/python/docs/reference/bigquery/2.34.4/google.cloud.bigquery.model.Model)\n- [2.33.0](/python/docs/reference/bigquery/2.33.0/google.cloud.bigquery.model.Model)\n- [2.32.0](/python/docs/reference/bigquery/2.32.0/google.cloud.bigquery.model.Model)\n- [2.31.0](/python/docs/reference/bigquery/2.31.0/google.cloud.bigquery.model.Model)\n- [2.30.1](/python/docs/reference/bigquery/2.30.1/google.cloud.bigquery.model.Model)\n- [2.29.0](/python/docs/reference/bigquery/2.29.0/google.cloud.bigquery.model.Model)\n- [2.28.1](/python/docs/reference/bigquery/2.28.1/google.cloud.bigquery.model.Model)\n- [2.27.1](/python/docs/reference/bigquery/2.27.1/google.cloud.bigquery.model.Model)\n- [2.26.0](/python/docs/reference/bigquery/2.26.0/google.cloud.bigquery.model.Model)\n- [2.25.2](/python/docs/reference/bigquery/2.25.2/google.cloud.bigquery.model.Model)\n- [2.24.1](/python/docs/reference/bigquery/2.24.1/google.cloud.bigquery.model.Model)\n- [2.23.3](/python/docs/reference/bigquery/2.23.3/google.cloud.bigquery.model.Model)\n- [2.22.1](/python/docs/reference/bigquery/2.22.1/google.cloud.bigquery.model.Model)\n- [2.21.0](/python/docs/reference/bigquery/2.21.0/google.cloud.bigquery.model.Model)\n- [2.20.0](/python/docs/reference/bigquery/2.20.0/google.cloud.bigquery.model.Model)\n- [2.19.0](/python/docs/reference/bigquery/2.19.0/google.cloud.bigquery.model.Model)\n- [2.18.0](/python/docs/reference/bigquery/2.18.0/google.cloud.bigquery.model.Model)\n- [2.17.0](/python/docs/reference/bigquery/2.17.0/google.cloud.bigquery.model.Model)\n- [2.16.1](/python/docs/reference/bigquery/2.16.1/google.cloud.bigquery.model.Model)\n- [2.15.0](/python/docs/reference/bigquery/2.15.0/google.cloud.bigquery.model.Model)\n- [2.14.0](/python/docs/reference/bigquery/2.14.0/google.cloud.bigquery.model.Model)\n- [2.13.1](/python/docs/reference/bigquery/2.13.1/google.cloud.bigquery.model.Model)\n- [2.12.0](/python/docs/reference/bigquery/2.12.0/google.cloud.bigquery.model.Model)\n- [2.11.0](/python/docs/reference/bigquery/2.11.0/google.cloud.bigquery.model.Model)\n- [2.10.0](/python/docs/reference/bigquery/2.10.0/google.cloud.bigquery.model.Model)\n- [2.9.0](/python/docs/reference/bigquery/2.9.0/google.cloud.bigquery.model.Model)\n- [2.8.0](/python/docs/reference/bigquery/2.8.0/google.cloud.bigquery.model.Model)\n- [2.7.0](/python/docs/reference/bigquery/2.7.0/google.cloud.bigquery.model.Model)\n- [2.6.2](/python/docs/reference/bigquery/2.6.2/google.cloud.bigquery.model.Model)\n- [2.5.0](/python/docs/reference/bigquery/2.5.0/google.cloud.bigquery.model.Model)\n- [2.4.0](/python/docs/reference/bigquery/2.4.0/google.cloud.bigquery.model.Model)\n- [2.3.1](/python/docs/reference/bigquery/2.3.1/google.cloud.bigquery.model.Model)\n- [2.2.0](/python/docs/reference/bigquery/2.2.0/google.cloud.bigquery.model.Model)\n- [2.1.0](/python/docs/reference/bigquery/2.1.0/google.cloud.bigquery.model.Model)\n- [2.0.0](/python/docs/reference/bigquery/2.0.0/google.cloud.bigquery.model.Model)\n- [1.28.2](/python/docs/reference/bigquery/1.28.2/google.cloud.bigquery.model.Model)\n- [1.27.2](/python/docs/reference/bigquery/1.27.2/google.cloud.bigquery.model.Model)\n- [1.26.1](/python/docs/reference/bigquery/1.26.1/google.cloud.bigquery.model.Model)\n- [1.25.0](/python/docs/reference/bigquery/1.25.0/google.cloud.bigquery.model.Model)\n- [1.24.0](/python/docs/reference/bigquery/1.24.0/google.cloud.bigquery.model.Model)\n- [1.23.1](/python/docs/reference/bigquery/1.23.1/google.cloud.bigquery.model.Model)\n- [1.22.0](/python/docs/reference/bigquery/1.22.0/google.cloud.bigquery.model.Model)\n- [1.21.0](/python/docs/reference/bigquery/1.21.0/google.cloud.bigquery.model.Model)\n- [1.20.0](/python/docs/reference/bigquery/1.20.0/google.cloud.bigquery.model.Model)\n- [1.19.0](/python/docs/reference/bigquery/1.19.0/google.cloud.bigquery.model.Model)\n- [1.18.0](/python/docs/reference/bigquery/1.18.0/google.cloud.bigquery.model.Model)\n- [1.17.0](/python/docs/reference/bigquery/1.17.0/google.cloud.bigquery.model.Model)\n- [1.16.0](/python/docs/reference/bigquery/1.16.0/google.cloud.bigquery.model.Model) \n\n Model(\n model_ref: typing.Optional[\n typing.Union[google.cloud.bigquery.model.ModelReference, str]\n ],\n )\n\nModel represents a machine learning model resource.\n\nSee\n\u003chttps://cloud.google.com/bigquery/docs/reference/rest/v2/models\u003e\n\nProperties\n----------\n\n### best_trial_id\n\nThe best trial_id across all training runs.\n\n\u003cbr /\u003e\n\n| **deprecated:** This property is deprecated!\nRead-only.\n\n\u003cbr /\u003e\n\n### created\n\nDatetime at which the model was created (:data:`None` until set from the server).\n\nRead-only.\n\n### dataset_id\n\nID of dataset containing the model.\n\n### description\n\nDescription of the model (defaults to :data:`None`).\n\n### encryption_configuration\n\nCustom encryption configuration for the model.\n\nCustom encryption configuration (e.g., Cloud KMS keys) or :data:`None`\nif using default encryption.\n\nSee `protecting data with Cloud KMS keys\n\u003c`[https://cloud.google.com/bigquery/docs/customer-managed-encryption\u003e](https://cloud.google.com/bigquery/docs/customer-managed-encryption>)`;`_\nin the BigQuery documentation.\n\n### etag\n\nETag for the model resource (:data:`None` until set from the server).\n\nRead-only.\n\n### expires\n\nThe datetime when this model expires.\n\nIf not present, the model will persist indefinitely. Expired models will be\ndeleted and their storage reclaimed.\n\n### feature_columns\n\nInput feature columns that were used to train this model.\n\nRead-only.\n\n### friendly_name\n\nTitle of the table (defaults to :data:`None`).\n\n### label_columns\n\nLabel columns that were used to train this model.\n\nThe output of the model will have a `predicted_` prefix to these columns.\n\nRead-only.\n\n### labels\n\nLabels for the table.\n\nThis method always returns a dict. To change a model's labels, modify the dict,\nthen call `Client.update_model`. To delete a label, set its value to\n:data:`None` before updating.\n\n### location\n\nThe geographic location where the model resides.\n\nThis value is inherited from the dataset.\n\nRead-only.\n\n### model_id\n\nThe model ID.\n\n### model_type\n\nType of the model resource.\n\nRead-only.\n\n### modified\n\nDatetime at which the model was last modified (:data:`None` until set from the server).\n\nRead-only.\n\n### path\n\nURL path for the model's APIs.\n\n### project\n\nProject bound to the model.\n\n### reference\n\nA model reference pointing to this model.\n\nRead-only.\n\n### training_runs\n\nInformation for all training runs in increasing order of start time.\n\nDictionaries are in REST API format. See:\n\u003chttps://cloud.google.com/bigquery/docs/reference/rest/v2/models#trainingrun\u003e\n\nRead-only.\n\n### transform_columns\n\nThe input feature columns that were used to train this model.\nThe output transform columns used to train this model.\n\nSee REST API:\n\u003chttps://cloud.google.com/bigquery/docs/reference/rest/v2/models#transformcolumn\u003e\n\nRead-only.\n\nMethods\n-------\n\n### from_api_repr\n\n from_api_repr(\n resource: typing.Dict[str, typing.Any],\n ) -\u003e google.cloud.bigquery.model.Model\n\nFactory: construct a model resource given its API representation\n\n### to_api_repr\n\n to_api_repr() -\u003e typing.Dict[str, typing.Any]\n\nConstruct the API resource representation of this model."]]