evalml.preprocessing.RandomUnderSamplerCVSplit.transform_sample

RandomUnderSamplerCVSplit.transform_sample(X, y)

Transforms the input data with the balancing strategy.

Parameters
  • X (ww.DataTable) – DataTable of points to split

  • y (ww.DataTable) – DataColumn of points to split

Returns

A tuple containing the resulting X and y post-transformation.

Return type

tuple(pd.DataFrame, pd.Series)