Partitioning algorithms¶
random_partition(df, test_size, random_state=42, **kwargs)
¶
Use random partitioning algorithm
to generate training and evaluation subsets.
Wrapper around the train_test_split
function
from scikit-learn.
Parameters:
Returns:
Type | Description |
---|---|
Tuple[pd.DataFrame, pd.DataFrame]
|
A tuple with the indexes of training and evaluation samples. |