Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Dec 5, 2023
1 parent 55e1957 commit 2d11c8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pvnet/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ def training_step(self, batch, batch_idx):
def validation_step(self, batch: dict, batch_idx):
"""Run validation step"""
y_hat = self(batch)
print(f"y_hat.shape: {y_hat.shape}")
print(f"{batch[self._target_key].shape}")
print(f"{batch[self._target_key][:, -self.forecast_len_30 :, 0].shape}")
print(f"{self.forecast_len_30}")
y = batch[self._target_key][:, -self.forecast_len_30 :, 0]

losses = self._calculate_common_losses(y, y_hat)
Expand Down

0 comments on commit 2d11c8b

Please sign in to comment.