Skip to content

Commit

Permalink
Merge branch 'gsp_sum_deviation' of https://github.com/openclimatefix…
Browse files Browse the repository at this point in the history
…/PVNet_summation into gsp_sum_deviation
  • Loading branch information
dfulu committed Jul 24, 2023
2 parents 8845955 + a21404f commit 0570769
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 @@ -110,4 +110,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 0570769

Please sign in to comment.