## FittedRecipe.minimize()


Return a recipe that keeps only what [transform()](Step.transform.md#mlfeatures.Step.transform) needs. See [mlfeatures.minimize](minimize.md#mlfeatures.minimize).


Usage

``` python
FittedRecipe.minimize()
```


Each step drops what it can: anything kept only for inspection after fitting, or only because fitting needed it. The result transforms new data identically and `self` is left unchanged. A step with nothing to drop is shared with `self` rather than copied.

Call it before saving or shipping a recipe, so the artifact carries only what scoring needs. [FittedRecipe.to_dict](FittedRecipe.to_dict.md#mlfeatures.FittedRecipe.to_dict) and the JSON and YAML writers save the recipe as it is and do not minimize it. No shipped step currently holds anything to drop, so today this returns an equivalent recipe.
