seldonian.spec.createSupervisedSpec

createSupervisedSpec(dataset, metadata_pth, constraint_strs, deltas, frac_data_in_safety=0.6, save=True, save_dir='.', verbose=False)

Convenience function for creating SupervisedSpec object. Uses many defaults which can later be changed by updating the spec object.

Saves spec.pkl file in save_dir

Parameters:
  • dataset (DataSet) – The dataset object containing data and metadata

  • metadata_pth (str) – Path to metadata file

  • constraint_strs (List(str)) – Constraint strings

  • deltas (List(float)) – Confidence thresholds

  • save – Boolean flag determining whether to save to a file

  • save_dir (str) – Directory where to save the spec.pkl file

  • verbose – Boolean glag to control verbosity