Model creation
BigQuery ML lets you build and operationalize machine learning (ML)models over data in BigQuery by using SQL.
A typical model development workflow in BigQuery ML looks similarto the following:
- Create the model using the
CREATE MODELstatement. - Perform feature preprocessing. Some preprocessing happensautomatically,plus you can usemanual preprocessing functionsinside the
TRANSFORMclauseto do additional preprocessing. - Refine the model by performinghyperparameter tuning to fit the modelto the training data.
- Evaluate the model to assess how it mightperform on data outside of the training set, and also to compare it to othermodels if appropriate.
- Perform inference to analyze data byusing the model.
- Provideexplainability for the model, toclarify how particular features influenced a given prediction and also themodel overall.
- Learn more about the components that comprize the model by usingmodel weights.
Because you can use many different kinds of models in BigQuery ML,the functions available for each model vary. For more information aboutsupported SQL statements and functions for each model type, see the followingdocuments:
- End-to-end user journey for generative AI models
- End-to-end user journey for time series forecasting models
- End-to-end user journey for ML models
- End-to-end user journey for imported models
- Contribution analysis user journey
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.