[ Web Proxy ]
URL:
Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.ml.preprocessing.PolynomialFeatures.html [Back]  [Original]

bigframes.ml.preprocessing.PolynomialFeatures — bigframes documentation
Back to top
Search the docs ...:

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.

fit(X: DataFrame | Series | DataFrame | Series, y=None) PolynomialFeatures[source]#

Compute number of output features.

Parameters:
Returns:

Fitted transformer.

Return type:

PolynomialFeatures

transform(X: DataFrame | Series | DataFrame | Series) DataFrame[source]#

Transform data to polynomial features.

Parameters:

X (bigframes.dataframe.DataFrame or bigframes.series.Series or pandas.core.frame.DataFrame or pandas.core.series.Series) The DataFrame or Series to be transformed.

Returns:

Transformed result.

Return type:

bigframes.dataframe.DataFrame


Web Proxy Viewer  |  New URL  |  Original Page