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 Jul 24, 2023
1 parent ca05126 commit a21404f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pvnet_summation/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

from pvnet_summation.utils import plot_forecasts


logger = logging.getLogger(__name__)

activities = [torch.profiler.ProfilerActivity.CPU]
Expand Down Expand Up @@ -52,7 +51,6 @@ def __init__(
)
self.pvnet_model.requires_grad_(False)


self._optimizer = optimizer

# Model must have lr to allow tuning
Expand Down
2 changes: 1 addition & 1 deletion pvnet_summation/models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ def forward(self, x):

out = F.leaky_relu(gsp_sum + out)

return out
return out
2 changes: 1 addition & 1 deletion pvnet_summation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def plot_forecasts(y, y_hat, times, batch_idx=None, quantiles=None, y_sum=None):
continue

ax.plot(times_utc[i], y[i], marker=".", color="k", label=r"$y$")

if y_sum is not None:
ax.plot(
times_utc[i], y_sum[i], marker=".", linestyle="--", color="k", label=r"$y_{sum}$"
Expand Down

0 comments on commit a21404f

Please sign in to comment.