henchman.learning.create_holdout

henchman.learning.create_holdout(X, y, split_size=0.3)[source]

A wrapper around train_test_split.

Parameters:
  • X (pd.DataFrame) – The dataframe to split.
  • y (pd.Series) – The labels to split.
  • split_size (float) – Size of testing set. Default is .3.

Example

>>> from henchman.learning import create_holdout
>>> X, X_ho, y, y_ho = create_holdout(X, y)