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
metrics (List[etna.metrics.base.Metric]) – list of metrics to compute
y_true (etna.datasets.tsdataset.TSDataset) – dataset of true values of time series
y_pred (etna.datasets.tsdataset.TSDataset) – dataset of time series forecast
- Returns
dict of metrics in format {“metric_name”: metric_value}
- Return type
Dict[str, Union[float, Dict[str, float]]]