Model creation workflow
You can build, refine, and operationalize machine learning (ML) models directly over your BigQuery data using SQL. The following end-to-end model creation workflow provides guidance for feature preprocessing, hyperparameter tuning, evaluation, inference, and explainability before you map your use case to the SQL statements that are supported for your model type:
- Create the model using the
CREATE MODELstatement. - Perform feature preprocessing. Some preprocessing happens
automatically,
plus you can use
manual preprocessing functions
inside the
TRANSFORMclause to do additional preprocessing. - Refine the model by performing hyperparameter tuning to fit the model to the training data.
- Evaluate the model to assess how it might perform on data outside of the training set, and also to compare it to other models if appropriate.
- Perform inference to analyze data by using the model.
- Provide explainability for the model, to clarify how particular features influenced a given prediction and also the model overall.
- Learn more about the components that the model consists of by using model weights.
Because you can use many different kinds of models in BigQuery ML, the functions available for each model vary. For more information about supported SQL statements and functions for each model type, see the following documents:
- 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