experiments.experiment_utils.prep_feat_labels

prep_feat_labels(trial_dataset, n_points, include_sensitive_attrs=False)

Utility function for preparing features and labels for a given trial with n_points (given data frac)

Parameters:
  • trial_dataset – The Seldonian dataset object containing trial data

  • n_points (int) – Number of points in this trial

  • include_sensitive_attrs (bool) – Whether to prep and return sensitive attributes as well.