Skip to content

Commit

Permalink
update for quantile loss
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Sep 12, 2024
1 parent 156fdfa commit 89e4e75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pvnet/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,11 @@ def _log_validation_results(self, batch, y_hat, accum_batch_num):

for i in range(batch_size):
y_i = y[i]
y_hat_i = y_hat[i]
if self.use_quantile_regression:
idx = self.output_quantiles.index(0.5)
y_hat_i = y_hat[i,idx]
else:
y_hat_i = y_hat[i]
time_utc_i = time_utc[i]
target_id_i = target_id[i]

Expand Down

0 comments on commit 89e4e75

Please sign in to comment.