load_surrogate_set#

scikitplot.cleanprompt.load_surrogate_set(path)[source]#

Read and validate a surrogate set from a .yaml, .yml or .json file.

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:

path (str | Path)

Return type:

SurrogateSet