check_recorded_metadata¶
yohou.testing.metadata_routing.check_recorded_metadata(obj, method, parent, split_params=(), **params)
¶
Check whether the expected metadata is passed to the object's method.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
obj
|
estimator object
|
Sub-estimator to check routed params for |
required |
method
|
str
|
Sub-estimator's method where metadata is routed to (callee) |
required |
parent
|
str
|
The parent method which called |
required |
split_params
|
tuple
|
Parameters which should be checked as subsets of the original values (used for CV splits where each fold gets a subset) |
empty
|
**params
|
dict
|
Expected metadata that should have been passed |
{}
|
Raises¶
| Type | Description |
|---|---|
AssertionError
|
If recorded metadata doesn't match expected metadata |