Es posible que parte de la información de esta página (o toda) no se aplique a Trusted Cloud de S3NS.
BigQuery ML admite diferentes tipos de atributos de entrada para diferentes tipos de modelos.
Los tipos de atributos de entrada admitidos se enumeran en la siguiente tabla:
BigQuery ML admite ARRAY<numerical>
como entrada vectorial densa durante el entrenamiento de modelos. El atributo de incorporación es un tipo especial de vector denso. Consulta la función ML.GENERATE_EMBEDDING
para obtener más información.
BigQuery ML admite ARRAY<STRUCT>
como entrada dispersa durante el entrenamiento de modelos. Cada struct contiene un valor INT64
que representa su índice basado en cero y un tipo numérico que representa el valor correspondiente.
A continuación, se muestra un ejemplo de una entrada de tensor disperso para el array de números enteros [0,1,0,0,0,0,1]
:
ARRAY<STRUCT<k INT64, v INT64>>[(1, 1), (6, 1)] AS f1
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-08-17 (UTC)
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-08-17 (UTC)"],[[["\u003cp\u003eBigQuery ML accommodates various input feature types, tailored to different model categories such as supervised, unsupervised, and time series models.\u003c/p\u003e\n"],["\u003cp\u003eNumeric, categorical, timestamp, struct, geography, and array types are supported across many BigQuery ML models, with specific models having certain specificities.\u003c/p\u003e\n"],["\u003cp\u003eDense vector input is supported using \u003ccode\u003eARRAY<numerical>\u003c/code\u003e for model training, which includes a special embedding feature as seen in the \u003ccode\u003eML.GENERATE_EMBEDDING\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eSparse input during model training is supported through the use of \u003ccode\u003eARRAY<STRUCT>\u003c/code\u003e, where each struct contains an \u003ccode\u003eINT64\u003c/code\u003e index and a numeric value.\u003c/p\u003e\n"],["\u003cp\u003eMatrix Factorization and ARIMA_PLUS models have unique input requirements, with the provided input types for ARIMA_PLUS_XREG only applying to external regressors.\u003c/p\u003e\n"]]],[],null,["# Supported input feature types\n=============================\n\nBigQuery ML supports different input feature types for different model types.\nSupported input feature types are listed in the following table:\n\n| **Note:** [Matrix Factorization](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-create-matrix-factorization#inputs) and [ARIMA_PLUS](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-create-time-series#time_series_data_col) models have special input feature types. The input types listed for [ARIMA_PLUS_XREG](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-create-multivariate-time-series#time_series_data_col) are only for external regressors.\n\nDense vector input\n------------------\n\nBigQuery ML supports `ARRAY\u003cnumerical\u003e` as dense vector input\nduring model training. The embedding feature is a special type of dense vector.\nsee the [`ML.GENERATE_EMBEDDING` function](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-generate-embedding) for more information.\n\nSparse input\n------------\n\nBigQuery ML supports `ARRAY\u003cSTRUCT\u003e` as sparse input during\nmodel training. Each struct contains an `INT64` value that represents its\nzero-based index, and a\n[numeric type](/bigquery/docs/reference/standard-sql/data-types#numeric_types)\nthat represents the corresponding value.\n\nBelow is an example of a sparse tensor input for the integer array\n`[0,1,0,0,0,0,1]`: \n\n ARRAY\u003cSTRUCT\u003ck INT64, v INT64\u003e\u003e[(1, 1), (6, 1)] AS f1"]]