check_weighter_compute_weights_alignment¶
yohou.testing.check_weighter_compute_weights_alignment(weighter, key)
¶
Check compute_weights returns one weight per key element.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
weighter
|
BaseWeighter
|
Weighter instance. |
required |
key
|
Series
|
Key series to weight. |
required |
Raises ¶
| Type | Description |
|---|---|
AssertionError
|
If the output is not a |