check_fit_sets_attributes¶
yohou.testing.transformer.check_fit_sets_attributes(transformer, X, y=None)
¶
Check fit() sets required attributes.
Validates that fit() creates feature_names_in_, n_features_in_, and _observation_horizon attributes as expected by sklearn conventions.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
transformer
|
BaseTransformer
|
Unfitted transformer instance |
required |
X
|
DataFrame
|
Training data with "time" column |
required |
y
|
DataFrame
|
Target data for supervised transformers |
None
|
Raises¶
| Type | Description |
|---|---|
AssertionError
|
If required attributes are not set after fit() |