bigframes.ml.model_selection.KFold.split#

KFold.split(X: DataFrame | Series | DataFrame | Series, y: DataFrame | Series | DataFrame | Series | None = None) Generator[tuple[DataFrame | Series | None, ...], None, None][source]#

Generate indices to split data into training and test set.

Parameters:
Yields:

X_train (bigframes.dataframe.DataFrame or bigframes.series.Series) – The training data for that split.

X_test (bigframes.dataframe.DataFrame or bigframes.series.Series):

The testing data for that split.

y_train (bigframes.dataframe.DataFrame, bigframes.series.Series or None):

The training label for that split.

y_test (bigframes.dataframe.DataFrame, bigframes.series.Series or None):

The testing label for that split.