seldonian.utils.hyperparam_utils.bootstrap_sample_dataset

bootstrap_sample_dataset(dataset, n_bootstrap_samples, regime)
Bootstrap sample a dataset of size n_bootstrap_samples from the data points

in dataset.

Parameters:
  • dataset (pandas DataFrame) – The original dataset from which to resample

  • n_bootstrap_samples (int) – The size of the bootstrapped dataset

  • savename (str) – Path to save the bootstrapped dataset.