bigframes.ml.preprocessing.PolynomialFeatures#

class bigframes.ml.preprocessing.PolynomialFeatures(degree: int = 2)[source]#

Generate polynomial and interaction features.

Parameters:

degree (int) – Specifies the maximal degree of the polynomial features. Valid values [1, 4]. Default to 2.

Methods

__init__([degree])

fit(X[, y])

Compute number of output features.

fit_transform(X[, y])

Fit to data, then transform it.

get_params([deep])

Get parameters for this estimator.

to_gbq(model_name[, replace])

Save the transformer as a BigQuery model.

transform(X)

Transform data to polynomial features.