PVNet 3.0.62__tar.gz → 3.0.64__tar.gz
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-3.0.62 → pvnet-3.0.64}/PKG-INFO +1 -1
- {pvnet-3.0.62 → pvnet-3.0.64}/PVNet.egg-info/PKG-INFO +1 -1
- pvnet-3.0.64/pvnet/__init__.py +2 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/base_model.py +4 -2
- pvnet-3.0.62/pvnet/__init__.py +0 -2
- {pvnet-3.0.62 → pvnet-3.0.64}/LICENSE +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/MANIFEST.in +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/PVNet.egg-info/SOURCES.txt +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/PVNet.egg-info/dependency_links.txt +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/PVNet.egg-info/requires.txt +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/PVNet.egg-info/top_level.txt +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/README.md +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/callbacks.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/data/__init__.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/data/base.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/data/datamodule.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/data/pv_site_datamodule.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/data/utils.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/data/wind_datamodule.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/load_model.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/__init__.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/baseline/__init__.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/baseline/last_value.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/baseline/single_value.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/ensemble.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/__init__.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/basic_blocks.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/encoders/__init__.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/encoders/basic_blocks.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/encoders/encoders2d.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/encoders/encoders3d.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/encoders/encodersRNN.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/linear_networks/__init__.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/linear_networks/basic_blocks.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/linear_networks/networks.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/multimodal.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/multimodal_base.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/site_encoders/__init__.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/site_encoders/basic_blocks.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/site_encoders/encoders.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/multimodal/unimodal_teacher.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/models/utils.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/optimizers.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/training.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pvnet/utils.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/pyproject.toml +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/setup.cfg +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/tests/test_end2end.py +0 -0
- {pvnet-3.0.62 → pvnet-3.0.64}/tests/test_utils.py +0 -0
|
@@ -94,7 +94,7 @@ def minimize_data_config(input_path, output_path, model):
|
|
|
94
94
|
if not model.include_nwp:
|
|
95
95
|
del config["input_data"]["nwp"]
|
|
96
96
|
else:
|
|
97
|
-
for nwp_source in config["input_data"]["nwp"].keys():
|
|
97
|
+
for nwp_source in list(config["input_data"]["nwp"].keys()):
|
|
98
98
|
nwp_config = config["input_data"]["nwp"][nwp_source]
|
|
99
99
|
|
|
100
100
|
if nwp_source not in model.nwp_encoders_dict:
|
|
@@ -666,7 +666,8 @@ class BaseModel(pl.LightningModule, PVNetModelHubMixin):
|
|
|
666
666
|
# Sensor seems to be in batch, station, time order
|
|
667
667
|
y = batch[self._target_key][:, -self.forecast_len :, 0]
|
|
668
668
|
|
|
669
|
-
self.
|
|
669
|
+
if (batch_idx + 1) % self.trainer.accumulate_grad_batches == 0:
|
|
670
|
+
self._log_validation_results(batch, y_hat, accum_batch_num)
|
|
670
671
|
|
|
671
672
|
# Expand persistence to be the same shape as y
|
|
672
673
|
losses = self._calculate_common_losses(y, y_hat)
|
|
@@ -743,6 +744,7 @@ class BaseModel(pl.LightningModule, PVNetModelHubMixin):
|
|
|
743
744
|
print("Failed to log validation results to wandb")
|
|
744
745
|
print(e)
|
|
745
746
|
|
|
747
|
+
self.validation_epoch_results = []
|
|
746
748
|
horizon_maes_dict = self._horizon_maes.flush()
|
|
747
749
|
|
|
748
750
|
# Create the horizon accuracy curve
|
pvnet-3.0.62/pvnet/__init__.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|