manager.multitask.agg_predictor
manager.multitask.agg_predictor(results, targets, weights)Aggregate per-target prediction packages into a weighted forecast.
Combines future predictions, training predictions, and training actuals from per-target prediction packages into an aggregated package compatible with PredictionFigure. This is a module-level convenience function; the same logic is available as BaseTask.agg_predictor.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| results | Dict[str, Dict[str, Any]] | Mapping of target name to prediction package (as returned by build_prediction_package). | required |
| targets | List[str] | Ordered list of target names to aggregate. | required |
| weights | List[float] | Per-target aggregation weights aligned with targets. |
required |
Returns
| Name | Type | Description |
|---|---|---|
| Dict[str, Any] | Aggregated prediction package with keys train_actual, |
|
| Dict[str, Any] | train_pred, future_pred, future_actual, |
|
| Dict[str, Any] | metrics_train, metrics_future, metrics_future_one_day, |
|
| Dict[str, Any] | validation_passed, and (when present in all sources) |
|
| Dict[str, Any] | test_actual. |