Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 29, 2024
1 parent b650c2d commit 34befcf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions pvnet_summation/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,22 @@ def __init__(
self._accumulated_y_hat = PredAccumulator()
self._accumulated_y_sum = PredAccumulator()
self._accumulated_times = PredAccumulator()

self.use_quantile_regression = self.output_quantiles is not None

if self.use_quantile_regression:
self.num_output_features = self.forecast_len_30 * len(self.output_quantiles)
else:
self.num_output_features = self.forecast_len_30



if self.pvnet_model.use_quantile_regression:
self.pvnet_output_shape= (317, self.pvnet_model.forecast_len, len(self.pvnet_model.output_quantiles))
self.pvnet_output_shape = (
317,
self.pvnet_model.forecast_len,
len(self.pvnet_model.output_quantiles),
)
else:
self.pvnet_output_shape= (317, self.pvnet_model.forecast_len)
self.pvnet_output_shape = (317, self.pvnet_model.forecast_len)

def predict_pvnet_batch(self, batch):
"""Use PVNet model to create predictions for batch"""
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ tensorboard
tqdm
omegaconf
hydra-core
python-dotenv
python-dotenv

0 comments on commit 34befcf

Please sign in to comment.