[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/bigquery/docs/reference/standard-sql/bigqueryml-preprocessing-functions [Back]  [Original]

Manual feature preprocessing  |  BigQuery  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback Stay organized with collections Save and categorize content based on your preferences.

Manual feature preprocessing

You can use the TRANSFORM clause of the CREATE MODEL statement in combination with manual preprocessing functions to define custom data preprocessing. You can also use these manual preprocessing functions outside of the TRANSFORM clause.

If you want to decouple data preprocessing from model training, you can create a transform-only model that only performs data transformations by using the TRANSFORM clause.

You can use the ML.TRANSFORM function to increase the transparency of feature preprocessing. This function lets you return the preprocessed data from a model's TRANSFORM clause, so that you can see the actual training data that goes into the model training, as well as the actual prediction data that goes into model serving.

For information about feature preprocessing support in BigQuery ML, see Feature preprocessing overview.

Types of preprocessing functions

There are several types of manual preprocessing functions:

The following sections describe the available preprocessing functions.

General functions

Use the following function on string or numerical expressions to do data cleanup:

Numerical functions

Use the following functions on numerical expressions to regularize data:

Categorical functions

Use the following functions on categorical data:

Text functions

Use the following functions on text string expressions:

Image functions

Use the following functions on image data:

Known limitations

What's next

For more information about supported SQL statements and functions for models that support manual feature preprocessing, see the following documents:

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page