compute_metrics

compute_metrics(metrics: List[etna.metrics.base.Metric], y_true: etna.datasets.tsdataset.TSDataset, y_pred: etna.datasets.tsdataset.TSDataset) Dict[str, Union[float, Dict[str, float]]][source]

Compute metrics for given y_true, y_pred.

Parameters
Returns

dict of metrics in format {“metric_name”: metric_value}

Return type

Dict[str, Union[float, Dict[str, float]]]