From 43b02855f27e4891231ea4123ba75ab807113b9f Mon Sep 17 00:00:00 2001 From: Chris Briggs Date: Wed, 13 Dec 2023 12:17:20 +0000 Subject: [PATCH 1/2] Fixed error from calling common_metrics in validation step --- pvnet/models/base_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvnet/models/base_model.py b/pvnet/models/base_model.py index 14e4d48d..4891201a 100644 --- a/pvnet/models/base_model.py +++ b/pvnet/models/base_model.py @@ -370,7 +370,7 @@ def _calculate_val_losses(self, y, y_hat): # Take median value for remaining metric calculations y_hat = self._quantiles_to_prediction(y_hat) - common_metrics_each_step = common_metrics(predictions=y_hat, targets=y) + common_metrics_each_step = common_metrics(predictions=y_hat.numpy(), target=y.numpy()) mse_each_step = common_metrics_each_step["rmse"] ** 2 mae_each_step = common_metrics_each_step["mae"] From f9998315de94df22dc59dc41f15de44bfc6c7514 Mon Sep 17 00:00:00 2001 From: James Fulton Date: Thu, 21 Dec 2023 14:15:16 +0000 Subject: [PATCH 2/2] update reqs --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 001e9906..2f8e00f7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ ocf_datapipes>=2.3.0 -ocf_ml_metrics +ocf_ml_metrics>=0.0.11 numpy pandas matplotlib