Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add notes for limit
  • Loading branch information
GarrettWu committed Jul 10, 2024
commit 2e64e0d2b3ca0ae4561145fbe30fde62233c7319
1 change: 1 addition & 0 deletions bigframes/ml/model_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def train_test_split(
stratify: (bigframes.series.Series or None, default None):
If not None, data is split in a stratified fashion, using this as the class labels. Each split has the same distribution of the class labels with the original dataset.
Default to None.
Note: By setting the stratify parameter, the memory consumption and generated SQL will be linear to the unique values in the Series. May return errors if the unique values size is too large.

Returns:
List[Union[bigframes.dataframe.DataFrame, bigframes.series.Series]]: A list of BigQuery DataFrames or Series.
Expand Down