FittedRecipe.from_yaml()
Reconstruct a fitted recipe from FittedRecipe.to_yaml output. See mlfeatures.from_yaml.
Usage
FittedRecipe.from_yaml(
text,
*,
trusted=(),
)Parameters
text: str-
The YAML text produced by FittedRecipe.to_yaml.
trusted: Iterable[type] = ()- Classes whose top-level packages the payload may also name classes from, for a step that is not registered. Defaults to none.
Raises
ValueError-
As for FittedRecipe.from_dict.
ImportError-
If the optional
pyyamlpackage is not installed.