(name: str)
| 149 | |
| 150 | |
| 151 | def get_aggregation(name: str) -> Callable[[], Dict[str, Callable]]: |
| 152 | try: |
| 153 | return AGGREGATION_REGISTRY[name] |
| 154 | except KeyError: |
| 155 | eval_logger.warning(f"{name} not a registered aggregation metric!") |
| 156 | |
| 157 | |
| 158 | def get_metric_aggregation(name: str) -> Callable[[], Dict[str, Callable]]: |