Prepare and test your skills
Prepare and test your skills
Evaluating problem requirements for low-code machine learning means matching business objectives, data modality, latency needs, and dataset size to the right training environment. BigQuery ML (opens in a new tab) trains natively in SQL where warehouse data already lives, Vertex AI AutoML (opens in a new tab) automates architecture search and tuning for supported data types, and custom training on Gemini Enterprise Agent Platform (Agent Platform) handles everything else. The correct choice preserves data locality, meets serving latency, and avoids custom code when a predefined routine is sufficient.
Requirement analysis for low-code model selection evaluates four dimensions together before choosing a training environment. The business objective determines the model type, data modality and location determine feasibility, latency determines serving viability, and dataset size determines tooling. Data flows from operational sources into storage optimized for training, then flows from that storage to the selected training environment through the BigQuery Storage API, BigQuery I/O connector, or Cloud Storage sharded reads.
Mapping business problems to low-code model types means selecting the modeling objective first and then supplying the columns and options that objective requires. Model creation (opens in a new tab) in BigQuery ML exposes classification, regression, forecasting, clustering, recommendation, and dimensionality reduction, each with its own set of required columns. Automatic tuning works well unless manual tuning is explicitly needed.
INPUT_LABEL_COLS identifying the column that contains the label data.TIME_SERIES_TIMESTAMP_COL for time points used in training and TIME_SERIES_DATA_COL for the data to forecast.RATING_COL for rating data, USER_COL for user data, and ITEM_COL for item data.Hyperparameter tuning for BigQuery ML is enabled with the NUM_TRIALS option, where the available tuning arguments vary by model type.
The three training environments differ by where data lives, how much automation they provide, and where models can serve. BigQuery ML keeps tabular workflows in the warehouse, AutoML automates model search for supported modalities, and custom training removes constraints on model type and platform consistency. ML pipelines (opens in a new tab) and managed Vertex AI pipelines carry data from storage to training to a versioned artifact without export when locality is preserved.
| ML environment | Training and serving model | Choose when |
|---|---|---|
| BigQuery ML | Data, infrastructure, and predefined model types operate in a single BigQuery system with SQL training | All data is in BigQuery, the team uses SQL, and an available model type matches the problem |
| AutoML | Prebuilt routines automate architecture choice, hyperparameter tuning, and machine provisioning; models serve from Google Cloud or deploy to an external device | Data and objective match a supported AutoML format, and text, video, or tabular use cases tolerate greater than 100ms latency |
| Custom training on Agent Platform | User-owned routines run on serverless architecture with tuning, TensorBoard, metadata, and monitoring services | The problem fits neither BigQuery ML nor AutoML, or training must remain consistent with on-premises or other-cloud pipelines |
Selection therefore follows order: first confirm BigQuery locality and SQL fit for BigQuery ML, then confirm AutoML format and latency fit for AutoML, and only after both fail select custom training. BigQuery ML also supports training AutoML tabular models from the BigQuery ML environment, so a team can start with SQL-defined models and then invoke automated tabular search without moving data. For large tables, partitioning improves query performance and cost efficiency, and materialized tables are preferred over views or subqueries for training speed.
Exam tip: Choose BigQuery ML only when data is in BigQuery, the team uses SQL, and the model type is supported; choose AutoML for text, video, or tabular models only when greater than 100ms inference latency is acceptable.
BigQuery ML (opens in a new tab) is a low-code environment that brings together data, infrastructure, and predefined model types into a single system. Training data stays in BigQuery and models are created with standard SQL, so no separate training cluster or export pipeline is required. Choose BigQuery ML when all of the training data is contained in BigQuery, the team is comfortable with SQL, and the set of models available in BigQuery ML matches the business problem.
BigQuery ML model types map directly to enterprise problem patterns for classification, regression, forecasting, and clustering. Each model type has a different set of options, and automatic tuning works well in most cases before considering manual tuning. Choosing a training method (opens in a new tab) depends on where data lives, what problem is solved, and how much control is needed.
Exam tip: Choose BigQuery ML only when all three conditions hold — data is in BigQuery, builders use SQL, and an available BigQuery ML model type matches the problem.
Creating a model in the console (opens in a new tab) produces a CREATE MODEL statement and a stored model object in a BigQuery dataset. The workflow moves training data from a BigQuery table, view, or saved query into the new model, with the modeling objective controlling which model types can be selected.
CREATE MODEL statement as a saved query with a query name and region.AutoML tabular models can also be trained from the BigQuery ML environment, which lets SQL-based workflows use automated tabular modeling without moving data.
Required columns in BigQuery ML identify which input fields play the label, user, item, rating, timestamp, and data roles during training. The required roles change by model family, while additional tuning arguments vary by the specific model type being created. Model options (opens in a new tab) control the algorithm behavior, and the TRANSFORM clause applies built-in BigQuery preprocessing where the data already resides.
INPUT_LABEL_COLS, the column that contains the label data.RATING_COL for rating data, USER_COL for user data, and ITEM_COL for item data, so user-to-item interactions flow from the training table into the recommendation model.TIME_SERIES_TIMESTAMP_COL for the time points used in training and TIME_SERIES_DATA_COL for the data to forecast, so ordered timestamps drive the forecast horizon.Optional tuning arguments adjust the selected model type, and the NUM_TRIALS option enables hyperparameter tuning for model types that expose it. For large tables, partitioning improves performance and cost, and materialized tables are preferred over views or subqueries (opens in a new tab) for training speed.
Model evaluation in BigQuery ML uses SQL evaluation functions to check aggregate metrics and diagnostic curves before promotion to production. ML.EVALUATE returns aggregate performance metrics such as accuracy, precision, and recall on held-out test data, ML.CONFUSION_MATRIX breaks classification predictions into true and false positives and negatives, and ML.ROC_CURVE traces tradeoff between true-positive and false-positive rates. Models are evaluated by comparing these metrics on test datasets, and by comparing performance across data subsets, model versions, and model architectures to confirm alignment with production thresholds.
AutoML on Vertex AI (opens in a new tab) is a managed training system that automates architecture selection, hyperparameter tuning, and machine provisioning for common tabular, forecasting, image, text, and video problems. A training job defined with the Vertex AI SDK for Python reads from a managed dataset, searches and ensembles candidate models, and returns a trained model artifact that flows to the Model Registry for serving from Google Cloud or deployment to an external device. Use AutoML when data and objectives match a supported format and, for text, video, or tabular models, when inference latency greater than 100ms is tolerable.
AutoMLTabularTrainingJob is the SDK class that creates, trains, and returns an AutoML tabular model for binary classification, multi-class classification, and regression. The job configuration binds the input TabularDataset to a business objective through target_column, optimization_prediction_type such as regression, and optimization_objective such as minimize-rmse. The run() call then executes the full lifecycle where data flows from the dataset to distributed training to the returned model object, with built-in preprocessing handling feature transformations automatically.
Binary classification predicts one of two classes for yes-or-no questions, multi-class classification predicts one of three or more discrete classes for categorization, and regression predicts a continuous value such as next-month spend. Binary classification generally requires less data than the other types, while all three share the same managed pattern where Vertex AI chooses model type, parameters, and hardware. The search considers neural networks and boosted trees, trains multiple models with multiple hyperparameter sets, and creates one final model from an ensemble of the top performers. Tabular data (opens in a new tab) for these jobs should use materialized BigQuery tables for fastest input, while unstructured inputs should use large sharded Cloud Storage containers.
Forecasting jobs predict a sequence of future values, such as daily product demand for the next three months, and Vertex AI provides four distinct training methods for this task. AutoMLForecastingTrainingJob uses the AutoML method and is the best choice for most forecasting use cases because it explores the largest search space. The specialized alternatives trade search breadth for speed, interpretability, or long-horizon efficiency when the use case benefits from a specific architecture.
| Training class | Method | Choose when |
|---|---|---|
| AutoMLForecastingTrainingJob | AutoML (L2L) | The use case needs maximum accuracy and does not specifically benefit from Seq2seq+ or TFT |
| SequenceToSequencePlusForecastingTrainingJob | Seq2seq+ | Fast experimentation is needed with a simpler algorithm, smaller search space, and datasets smaller than 1 GB |
| TemporalFusionTransformerForecastingTrainingJob | Temporal Fusion Transformer (TFT) | The task needs an attention-based deep neural network for multi-horizon forecasting |
| TimeSeriesDenseEncoderForecastingTrainingJob | Time-series Dense Encoder (TiDE) | The task needs multi-layer perceptron speed of linear models with covariates plus non-linear dependencies |
The forecasting pipeline follows the same order as tabular classification and regression: first the time-series dataset is split and featurized, then multiple models are trained with different hyperparameters, then the top models are ensembled into one artifact. AutoMLImageTrainingJob follows the same create-train-return pattern for unstructured image data, and AutoML tabular models can also be launched from the BigQuery ML (opens in a new tab) environment when source data already lives in BigQuery.
Tabular Workflow for End-to-End AutoML is a complete AutoML pipeline that exposes control at every step instead of only at the whole-pipeline level. The workflow decomposes training into an ordered sequence where data flows from one managed component to the next and each component writes metadata that the next component depends on. The pipeline depends on its managed dataset, and the final ensemble depends on the outputs of architecture search and training.
Tabular Workflow for End-to-End AutoML supports large datasets that are multiple terabytes in size with up to 1000 columns, while Tabular Workflow for Forecasting supports datasets up to 1 TB with up to 200 columns. Each component can be inspected in the pipelines graph interface to see transformed tables, evaluated architectures, logs, and status, which gives transparency that the fully managed AutoML API does not expose. Choose the fully managed API when Vertex AI should choose hardware and parameters automatically, and choose Tabular Workflows when stability, speed, or serving cost must be tuned step by step.
Managed datasets on Vertex AI create a tracked link between data and the custom-trained or AutoML model through Vertex ML Metadata. A managed dataset provides descriptive statistics and supports automatic or manual splitting into train, validation, and test sets, so parameters, metrics, and dataset and model artifacts stay linked for audit and comparison. Use managed datasets when lineage between data and model is critical, and manage splits in training code only when finer control is required.
Custom split strategies are configured directly on the training job with training_fraction_split, validation_fraction_split, and test_fraction_split, for example 0.6, 0.2, and 0.2 for a regression job. The training fraction feeds architecture search and parameter fitting, the validation fraction guides hyperparameter selection and early stopping, and the test fraction is held out for final aggregate metrics such as accuracy, precision, and recall. Training compute budget is controlled with budget_milli_node_hours, such as 1000 milli-node-hours, which caps the total distributed compute that architecture search and tuning can consume. The disable_early_stopping flag controls whether unpromising trials stop early, so leaving it as False preserves the default tradeoff of saving compute without sacrificing the best candidates. Additional controls include limiting architecture search space, manually selecting hardware, and reducing ensemble size or applying distillation to lower latency. For unstructured data, store inputs in large sharded containers (opens in a new tab) such as sharded TFRecord files for TensorFlow or Avro files for other frameworks, with files of at least 100 MB grouped in buckets and directories and sharded between 100 and 10,000 shards.
Exam tip: Choose Seq2seq+ for fast experimentation on forecasting datasets smaller than 1 GB, and choose the full AutoML forecasting method when no specialized TFT or Seq2seq+ benefit applies.
Validation on Vertex AI combines aggregate metrics, experiment comparison, and feature-level explanations before any artifact is promoted. Vertex AI TensorBoard tracks loss and accuracy over time, visualizes the model graph, and projects embeddings to compare runs by hyperparameters, while Experiments integrates with Vertex ML Metadata to log linkage across parameters, metrics, and dataset and model artifacts. Vertex AI Workbench instances provide the interactive environment for this analysis, including scikit-learn libraries for slice-based checks of accuracy, precision, and recall across data subsets, model versions, and architectures.
Vertex Explainable AI adds feature attributions that quantify the importance of each input feature to a specific prediction, which helps confirm model behavior and build trust. The service details why a tabular or image model generated a prediction by ranking contributing features for each request. Workbench extends this with the What-If Tool (WIT) for interactive bias analysis and the Language Interpretability Tool (LIT) for visual exploration of natural language model behavior.
A deployed AutoML artifact is the versioned model stored in the Model Registry (opens in a new tab) that serves prediction traffic from Google Cloud or from an external edge device. The deployment flow moves in order from the training job to the registry to serving, where the registry owns versioning and the serving infrastructure owns autoscaling and monitoring. The same artifact can support batch prediction for large offline scoring and real-time prediction for latency-sensitive requests, with text, video, and tabular AutoML models requiring tolerance for latency greater than 100ms. After deployment, Model Monitoring tracks prediction drift and performance, and retraining is productionized through the managed training service or PipelineJob so new data flows from BigQuery, Cloud Storage, or Vertex AI Feature Store into a new training run and then to an updated registry version.
INPUT_LABEL_COLS for classification and regression labels, TIME_SERIES_TIMESTAMP_COL and TIME_SERIES_DATA_COL for forecasting, RATING_COL, USER_COL, and ITEM_COL for matrix factorization, and NUM_TRIALS to enable hyperparameter tuning.budget_milli_node_hours, custom splits use training_fraction_split, validation_fraction_split, and test_fraction_split, and unstructured training data should use files of at least 100 MB sharded between 100 and 10,000 shards.Choose BigQuery ML only when all training data is in BigQuery, the team uses SQL, and an available BigQuery ML model type matches the problem. Choose Vertex AI AutoML when data and objective match a supported AutoML format and text, video, or tabular use cases tolerate greater than 100ms inference latency, and choose custom training on Agent Platform only when the problem fits neither option or training must remain consistent with on-premises or other-cloud pipelines. BigQuery ML also supports training AutoML tabular models from the BigQuery ML environment without moving data.
Classification and regression models require INPUT_LABEL_COLS identifying the label column, time-series forecasting models require TIME_SERIES_TIMESTAMP_COL for time points and TIME_SERIES_DATA_COL for data to forecast, and matrix factorization models require RATING_COL, USER_COL, and ITEM_COL for rating, user, and item data. Hyperparameter tuning is enabled with the NUM_TRIALS option where available tuning arguments vary by model type.
AutoMLForecastingTrainingJob using the AutoML method is the best choice for most forecasting use cases when no specialized benefit applies. SequenceToSequencePlusForecastingTrainingJob using Seq2seq+ is for fast experimentation with datasets smaller than 1 GB, TemporalFusionTransformerForecastingTrainingJob using Temporal Fusion Transformer is for attention-based multi-horizon forecasting, and TimeSeriesDenseEncoderForecastingTrainingJob using Time-series Dense Encoder is for multi-layer perceptron speed with covariates plus non-linear dependencies.
Last updated