Module compose (1.4.0)

Build composite transformers on heterogeneous data. This module is styled after scikit-Learn's compose module: https://scikit-learn.org/stable/modules/classes.html#module-sklearn.compose.

Classes

ColumnTransformer

ColumnTransformer(
 transformers: typing.List[
 typing.Tuple[
 str,
 typing.Union[
 bigframes.ml.preprocessing.OneHotEncoder,
 bigframes.ml.preprocessing.StandardScaler,
 bigframes.ml.preprocessing.MaxAbsScaler,
 bigframes.ml.preprocessing.MinMaxScaler,
 bigframes.ml.preprocessing.KBinsDiscretizer,
 bigframes.ml.preprocessing.LabelEncoder,
 ],
 typing.Union[str, typing.List[str]],
 ]
 ]
)

Applies transformers to columns of BigQuery DataFrames.

This estimator allows different columns or column subsets of the input to be transformed separately, and the features generated by each transformer will be concatenated to form a single feature space. This is useful for heterogeneous or columnar data to combine several feature extraction mechanisms or transformations into a single transformer.

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 2025年10月27日 UTC.