check_search_not_fitted_error¶
yohou.testing.search.check_search_not_fitted_error(search_cv, y, X_actual=None)
¶
Check accessing fitted attributes before fit() raises NotFittedError.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
search_cv
|
BaseSearchCV
|
Unfitted search CV instance |
required |
y
|
DataFrame
|
Test target data |
required |
X_actual
|
DataFrame
|
Test features |
None
|
Raises¶
| Type | Description |
|---|---|
AssertionError
|
If NotFittedError is not raised when accessing fitted attributes |