seldonian.spec.createSimpleSupervisedSpec¶
- createSimpleSupervisedSpec(dataset, constraint_strs, deltas, sub_regime='regression', sensitive_col_names=[], frac_data_in_safety=0.6, save=True, save_dir='.', verbose=False)¶
Convenience function for creating SupervisedSpec object without a metadata file.
Saves spec.pkl file in save_dir
- Parameters:
dataset (
DataSet
) – The dataset object containing data and metadataconstraint_strs (List(str)) – Constraint strings
deltas (List(float)) – Confidence thresholds
sub_regime – “classification” or “regression”
sensitive_col_names (List(str)) – List of sensitive column names
frac_data_in_safety (float) – Fraction of data used in safety test. The remaining fraction will be used in candidate selection
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