check_scorer_aggregation_methods¶
yohou.testing.check_scorer_aggregation_methods(scorer, y_truth, y_pred, aggregation_methods)
¶
Check all aggregation_method combinations produce valid output.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
scorer
|
BaseScorer
|
Scorer instance with aggregation_method parameter |
required |
y_truth
|
DataFrame
|
Ground truth |
required |
y_pred
|
DataFrame
|
Predictions |
required |
aggregation_methods
|
list of str
|
Valid aggregation methods to test |
required |
Raises ¶
| Type | Description |
|---|---|
AssertionError
|
If any aggregation method fails or produces invalid output |
Notes ¶
A scalar is returned only when stepwise, vintagewise, and componentwise aggregations are all applied together; partial aggregations (e.g., ['stepwise'] only) return a DataFrame.