BigQuery ML supportsARRAY<numerical>as dense vector input
during model training. The embedding feature is a special type of dense vector.
see theML.GENERATE_EMBEDDINGfunctionfor more information.
Sparse input
BigQuery ML supportsARRAY<STRUCT>as sparse input during
model training. Each struct contains anINT64value that represents its
zero-based index, and anumeric typethat represents the corresponding value.
Below is an example of a sparse tensor input for the integer array[0,1,0,0,0,0,1]:
[[["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 2025-11-14 UTC."],[],[]]