evalml.pipelines.components.PolynomialDetrender.fit_transform

PolynomialDetrender.fit_transform(X, y=None)[source]

Removes fitted trend from target variable.

Parameters
  • X (ww.DataTable, pd.DataFrame, optional) – Ignored.

  • y (ww.DataColumn, pd.Series) – Target variable to detrend.

Returns

The first element are the input features returned without modification.

The second element is the target variable y with the fitted trend removed.

Return type

tuple of ww.DataTable, ww.DataColumn