check_scorer_aggregation_methods¶
yohou.testing.scorer.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¶
Single aggregation methods (e.g., ['stepwise']) may return DataFrames. Only when using all available methods together does it return a scalar.