recipe = (
Recipe(data=credit, target="Status")
.add(StepNormalize(s.numeric_features()))
.add(StepDummy(s.nominal_features()))
)
fitted = recipe.fit(credit)FittedRecipe.summary()
The columns the recipe produces, as a tidy data frame.
Usage
FittedRecipe.summary()One row per output column, with its dtype, role, and the step that created it ("original" for columns passed through from the input).
Use it to see which columns the trained recipe will hand to a model and which step each came from. For where a single column came from, or what it descends from, use the Lineage in the lineage attribute.
Raises
ValueError- If the recipe was constructed without a lineage.
Examples
After fitting, the summary reflects the transformed columns: the nominal columns have been expanded into dummy indicators (source "dummy") while the normalized numeric columns keep their feature role:
fitted.summary()
shape: (23, 5)
| name | dtype | roles | source | sparse |
|---|---|---|---|---|
| str | str | str | str | bool |
| "Status" | "str" | "target" | "original" | false |
| "Seniority" | "float" | "feature" | "original" | false |
| "Time" | "float" | "feature" | "original" | false |
| "Age" | "float" | "feature" | "original" | false |
| "Expenses" | "float" | "feature" | "original" | false |
| … | … | … | … | … |
| "Marital_widow" | "int" | "feature" | "dummy" | false |
| "Records_yes" | "int" | "feature" | "dummy" | false |
| "Job_freelance" | "int" | "feature" | "dummy" | false |
| "Job_others" | "int" | "feature" | "dummy" | false |
| "Job_partime" | "int" | "feature" | "dummy" | false |