evalml.pipelines.components.PolynomialDetrender.fit_transform

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

Removes fitted trend from target variable.

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

  • y (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 pd.DataFrame, pd.Series