## FittedRecipe.from_yaml()


Reconstruct a fitted recipe from [FittedRecipe.to_yaml](FittedRecipe.to_yaml.md#mlfeatures.FittedRecipe.to_yaml) output. See [mlfeatures.from_yaml](from_yaml.md#mlfeatures.from_yaml).


Usage

``` python
FittedRecipe.from_yaml(
    text,
    *,
    trusted=(),
)
```


## Parameters


`text: str`  
The YAML text produced by [FittedRecipe.to_yaml](FittedRecipe.to_yaml.md#mlfeatures.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](FittedRecipe.from_dict.md#mlfeatures.FittedRecipe.from_dict).

`ImportError`  
If the optional `pyyaml` package is not installed.
