Skip to content

Commit

Permalink
Merge pull request #105 from openclimatefix/chris/validation-step-error
Browse files Browse the repository at this point in the history
Fixed error caused by incorrect call to common_metrics in validation step
  • Loading branch information
dfulu authored Dec 21, 2023
2 parents f078879 + b341182 commit 195841f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pvnet/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, target=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"]

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ocf_datapipes>=3.0.0
ocf_ml_metrics
ocf_ml_metrics>=0.0.11
numpy
pandas
matplotlib
Expand Down

0 comments on commit 195841f

Please sign in to comment.