google.cloud.bigquery.model.Model#
Methods
|
Factory: construct a model resource given its API representation |
Attributes
Datetime at which the model was created ( |
|
ID of dataset containing the model. |
|
Description of the model (defaults to |
|
ETag for the model resource ( |
|
The datetime when this model expires. |
|
Input feature columns that were used to train this model. |
|
Title of the table (defaults to |
|
Label columns that were used to train this model. |
|
Labels for the table. |
|
The geographic location where the model resides. |
|
The model ID. |
|
Type of the model resource. |
|
Datetime at which the model was last modified ( |
|
URL path for the model’s APIs. |
|
Project bound to the model |
|
A |
|
Information for all training runs in increasing order of start time. |
-
class
google.cloud.bigquery.model.
Model
(model_ref)[source]# Bases:
object
Model represents a machine learning model resource.
See https://cloud.google.com/bigquery/docs/reference/rest/v2/models
- Parameters
model_ref (Union[
ModelReference
, str, ]) – A pointer to a model. Ifmodel_ref
is a string, it must included a project ID, dataset ID, and model ID, each separated by.
.
-
property
created
# Datetime at which the model was created (
None
until set from the server).Read-only.
- Type
Union[datetime.datetime, None]
-
property
expires
# The datetime when this model expires. If not present, the model will persist indefinitely. Expired models will be deleted and their storage reclaimed.
- Type
Union[datetime.datetime, None]
-
property
feature_columns
# Input feature columns that were used to train this model.
Read-only.
An iterable of
StandardSqlField
.- Type
-
property
friendly_name
# Title of the table (defaults to
None
).- Raises
ValueError – For invalid value types.
- Type
-
classmethod
from_api_repr
(resource)[source]# Factory: construct a model resource given its API representation
-
property
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.
An iterable of
StandardSqlField
.- Type
-
property
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 toNone
before updating.
-
property
location
# The geographic location where the model resides. This value is inherited from the dataset.
Read-only.
- Type
-
property
model_type
# Type of the model resource.
Read-only.
The value is one of elements of the
ModelType
enumeration.
-
property
modified
# Datetime at which the model was last modified (
None
until set from the server).Read-only.
- Type
Union[datetime.datetime, None]
-
property
reference
# A
ModelReference
pointing to this model.Read-only.
- Returns
pointer to this model.
- Return type
-
property
training_runs
# Information for all training runs in increasing order of start time.
Read-only.
An iterable of
TrainingRun
.- Type