End-to-end user journeys for ML models
Exploring the end-to-end user journeys for BigQuery ML-trained models can help you identify the exact SQL statements and functions supported for each stage of the machine learning (ML) lifecycle. Reviewing these workflows across supervised, unsupervised, and transform-only models lets you map out how to train, tune, evaluate, explain, monitor, and generate predictions from your models directly in BigQuery ML.
Model creation user journeys
The following table describes the statements and functions you can use to create and tune models:
1For a step-by-step example of using hyperparameter tuning, see Improve model performance with hyperparameter tuning.
2BigQuery ML doesn't offer a function to retrieve the
weights for this model. To see the weights of the model, you can
export the model from BigQuery ML to Cloud Storage and then use the
XGBoost library or the TensorFlow library to visualize the tree
structure for tree models or the graph structure for neural networks. For more
information, see
EXPORT MODEL and
Export a BigQuery ML model for online prediction.
Model use user journeys
The following table describes the statements and functions you can use to evaluate, 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.
3The ML.EXPLAIN_PREDICT function encompasses the
ML.PREDICT function because its output is a superset of the
results of ML.PREDICT.
4To understand the difference between ML.GLOBAL_EXPLAIN and
ML.FEATURE_IMPORTANCE, see the
Explainable AI overview.
5The ML.ADVANCED_WEIGHTS function encompasses the
ML.WEIGHTS function because its output is a superset of the
results of ML.WEIGHTS.