bigframes.pandas.read_gbq_model#

bigframes.pandas.read_gbq_model(model_name: str)[source]#

Loads a BigQuery ML model from BigQuery.

Examples:

Read an existing BigQuery ML model.

>>> import bigframes.pandas as bpd
>>> model_name = "bigframes-dev.bqml_tutorial.penguins_model"
>>> model = bpd.read_gbq_model(model_name)
Parameters:

model_name (str) – the model’s name in BigQuery in the format project_id.dataset_id.model_id, or just dataset_id.model_id to load from the default project.

Returns:

A bigframes.ml Model, Transformer or Pipeline wrapping the model.