End-to-end user journeys for ML models
This document describes the user journeys for machine learning (ML) models thatare trained in BigQuery ML, including the statements and functions thatyou can use to work with ML models. BigQuery ML offers thefollowing types of ML models:
Supervised learningmodels:
Unsupervised learningmodels:
Transform-only models:Transform-only models aren't typical ML models but areinstead artifacts that transform raw data into features.
Model creation user journeys
The following table describes the statements and functions you can use to createand tune models:
1For a step-by-step example of using hyperparameter tuning, seeImprove model performance with hyperparameter tuning.
2BigQuery ML doesn't offer a function to retrieve theweights for this model. To see the weights of the model, you canexport the model from BigQuery ML to Cloud Storage and then use theXGBoost library or the TensorFlow library to visualize the treestructure for tree models or the graph structure for neural networks. For moreinformation, seeEXPORT MODEL andExport a BigQuery ML model for online prediction.
Model use user journeys
The following table describes the statements and functions you can use toevaluate, explain, and get predictions from models:
1ML.CONFUSION_MATRIX is only applicable to classification models.
2ML.ROC_CURVE is only applicable to binary classification models.
3TheML.EXPLAIN_PREDICT function encompasses theML.PREDICT function because its output is a superset of theresults ofML.PREDICT.
4To understand the difference betweenML.GLOBAL_EXPLAIN andML.FEATURE_IMPORTANCE, see theExplainable AI overview.
5TheML.ADVANCED_WEIGHTS function encompasses theML.WEIGHTS function because its output is a superset of theresults ofML.WEIGHTS.
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 2026-02-18 UTC.