To export an existing model from BigQuery ML to
Cloud Storage, use the
For more information about supported model types, formats, and limitations, see Exporting models.
EXPORT MODEL MODEL_NAME [OPTIONS(URI = STRING_VALUE)]
MODEL_NAMEis the name of the BigQuery ML model you're exporting. If you are exporting a model in another project, you must specify the project, dataset, and model in the following format, including backticks:
If the model name does not exist in the dataset, the following error is returned:
Error: Not found: Model myproject:mydataset.mymodel
STRING_VALUEis the URI of a Cloud Storage bucket where the model is exported. This option is required for the
EXPORT MODELstatement. For example:
URI = 'gs://bucket/path/to/saved_model/'