PVNet 5.0.8__py3-none-any.whl → 5.0.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pvnet/training/lightning_module.py +9 -6
- {pvnet-5.0.8.dist-info → pvnet-5.0.9.dist-info}/METADATA +1 -1
- {pvnet-5.0.8.dist-info → pvnet-5.0.9.dist-info}/RECORD +6 -6
- {pvnet-5.0.8.dist-info → pvnet-5.0.9.dist-info}/WHEEL +0 -0
- {pvnet-5.0.8.dist-info → pvnet-5.0.9.dist-info}/licenses/LICENSE +0 -0
- {pvnet-5.0.8.dist-info → pvnet-5.0.9.dist-info}/top_level.txt +0 -0
|
@@ -105,8 +105,9 @@ class PVNetLightningModule(pl.LightningModule):
|
|
|
105
105
|
"""Run training step"""
|
|
106
106
|
y_hat = self.model(batch)
|
|
107
107
|
|
|
108
|
-
# Batch
|
|
109
|
-
|
|
108
|
+
# Batch may be adapted in the model forward method, would need adapting here too
|
|
109
|
+
if self.model.adapt_batches:
|
|
110
|
+
batch = self.model._adapt_batch(batch)
|
|
110
111
|
|
|
111
112
|
y = batch[self.model._target_key][:, -self.model.forecast_len :]
|
|
112
113
|
|
|
@@ -211,8 +212,9 @@ class PVNetLightningModule(pl.LightningModule):
|
|
|
211
212
|
with torch.no_grad():
|
|
212
213
|
y_hat = self.model(batch)
|
|
213
214
|
|
|
214
|
-
# Batch
|
|
215
|
-
|
|
215
|
+
# Batch may be adapted in the model forward method, would need adapting here too
|
|
216
|
+
if self.model.adapt_batches:
|
|
217
|
+
batch = self.model._adapt_batch(batch)
|
|
216
218
|
|
|
217
219
|
fig = plot_sample_forecasts(
|
|
218
220
|
batch,
|
|
@@ -233,8 +235,9 @@ class PVNetLightningModule(pl.LightningModule):
|
|
|
233
235
|
"""Run validation step"""
|
|
234
236
|
|
|
235
237
|
y_hat = self.model(batch)
|
|
236
|
-
# Batch
|
|
237
|
-
|
|
238
|
+
# Batch may be adapted in the model forward method, would need adapting here too
|
|
239
|
+
if self.model.adapt_batches:
|
|
240
|
+
batch = self.model._adapt_batch(batch)
|
|
238
241
|
|
|
239
242
|
# Internally store the val predictions
|
|
240
243
|
self._store_val_predictions(batch, y_hat)
|
|
@@ -22,11 +22,11 @@ pvnet/models/late_fusion/site_encoders/__init__.py,sha256=QoUiiWWFf12vEpdkw0gO4T
|
|
|
22
22
|
pvnet/models/late_fusion/site_encoders/basic_blocks.py,sha256=iEB_N7ZL5HMQ1hZM6H32A71GCwP7YbErUx0oQF21PQM,1042
|
|
23
23
|
pvnet/models/late_fusion/site_encoders/encoders.py,sha256=k4z690cfcP6J4pm2KtDujHN-W3uOl7QY0WvBIu1tM8c,11703
|
|
24
24
|
pvnet/training/__init__.py,sha256=FKxmPZ59Vuj5_mXomN4saJ3En5M-aDMxSs6OttTQOcg,49
|
|
25
|
-
pvnet/training/lightning_module.py,sha256=
|
|
25
|
+
pvnet/training/lightning_module.py,sha256=GVqdi5ALFo9-_WRYeyMMj2qH_k4gPxQ2sG6FhL_wRFE,13242
|
|
26
26
|
pvnet/training/plots.py,sha256=4xID7TBA4IazaARaCN5AoG5fFPJF1wIprn0y6I0C31c,2469
|
|
27
27
|
pvnet/training/train.py,sha256=zj9JMi9C6W68vGsQUBapWkJ4aDzDuJFMv0IVjO73s1k,5215
|
|
28
|
-
pvnet-5.0.
|
|
29
|
-
pvnet-5.0.
|
|
30
|
-
pvnet-5.0.
|
|
31
|
-
pvnet-5.0.
|
|
32
|
-
pvnet-5.0.
|
|
28
|
+
pvnet-5.0.9.dist-info/licenses/LICENSE,sha256=tKUnlSmcLBWMJWkHx3UjZGdrjs9LidGwLo0jsBUBAwU,1077
|
|
29
|
+
pvnet-5.0.9.dist-info/METADATA,sha256=Z909YP0GU68upJxamWI1BlHI4vZjbSUAAlEnIt2V_fc,18043
|
|
30
|
+
pvnet-5.0.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
31
|
+
pvnet-5.0.9.dist-info/top_level.txt,sha256=4mg6WjeW05SR7pg3-Q4JRE2yAoutHYpspOsiUzYVNv0,6
|
|
32
|
+
pvnet-5.0.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|