load_surrogate_set#
- scikitplot.cleanprompt.load_surrogate_set(path)[source]#
Read and validate a surrogate set from a
.yaml,.ymlor.jsonfile.- Parameters:
- pathpath-like
The set file. YAML needs PyYAML; JSON needs nothing.
- Returns:
- SurrogateSet
Validated.
- Raises:
- PackError
If the document is invalid, listing every problem.
- CleanPromptError
If the file is missing, too large, or of an unknown type.
- Parameters:
- Return type:
Gallery examples#
Cleanprompt Moderate: Policies, Entities, and the Vault’s Lifecycle
Cleanprompt Moderate: Policies, Entities, and the Vault's Lifecycle