Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Sep 5, 2024
1 parent 202385a commit a17ad48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pvnet/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,10 +623,10 @@ def _log_validation_results(self, batch, y_hat, accum_batch_num):
y_i = y[i].detach().cpu().numpy()
y_hat_i = y_hat[i].detach().cpu().numpy()

time_utc_key = getattr(BatchKey, f"{self._target_key}_time_utc")
time_utc_key = BatchKey[f"{self._target_key}_time_utc"]
time_utc = batch[time_utc_key][i, -self.forecast_len :].detach().cpu().numpy()

id_key = getattr(BatchKey, f"{self._target_key}_id")
id_key = BatchKey[f"{self._target_key}_id"]
target_id = batch[id_key][i].detach().cpu().numpy()

results_df = pd.DataFrame(
Expand Down

0 comments on commit a17ad48

Please sign in to comment.