convert_torchmetric_to_pytorch_forecasting_metric#

pytorch_forecasting.metrics.base_metrics.convert_torchmetric_to_pytorch_forecasting_metric(metric: Metric) Metric[source]#

If necessary, convert a torchmetric to a PyTorch Forecasting metric that works with PyTorch Forecasting models.

Parameters

metric (LightningMetric) – metric to (potentially) convert

Returns

PyTorch Forecasting metric

Return type

Metric