FittedMethod
FittedMethod()A method with its parameters settled, ready to apply to any rows.
Methods
| Name | Description |
|---|---|
| apply | Return the frame with this method’s columns added. |
| to_dict | Return what this method learned, for the audit trail. |
apply
apply(subjects)Return the frame with this method’s columns added.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| subjects | pd.DataFrame | One row per subject, as pivot_sources returns. | required |
Returns
| Name | Type | Description |
|---|---|---|
| pd.DataFrame | A copy carrying the method’s output columns. |
to_dict
to_dict()Return what this method learned, for the audit trail.
Plain, JSON-compatible values only: str, int, float, bool, None, and lists or dicts of those. No pickles, no custom objects, no timestamps that are not already strings. Always includes a method key holding the registry name.
Returns
| Name | Type | Description |
|---|---|---|
| dict[str, object] | The fitted parameters and the registry name that produced them. |