check_forecaster_not_fitted_error¶
yohou.testing.check_forecaster_not_fitted_error(forecaster, y, X_actual=None)
¶
Check accessing fitted attributes before fit() raises NotFittedError.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
forecaster
|
BaseForecaster
|
Unfitted forecaster instance |
required |
y
|
DataFrame
|
Unused; retained for API uniformity with other check functions. |
required |
X_actual
|
DataFrame
|
Unused; retained for API uniformity with other check functions. |
None
|
Raises ¶
| Type | Description |
|---|---|
AssertionError
|
If NotFittedError is not raised when accessing fitted attributes |