PVNet 3.0.27__tar.gz → 3.0.28__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.27 → pvnet-3.0.28}/PKG-INFO +1 -1
- {pvnet-3.0.27 → pvnet-3.0.28}/PVNet.egg-info/PKG-INFO +1 -1
- pvnet-3.0.28/pvnet/__init__.py +2 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/base_model.py +17 -10
- pvnet-3.0.27/pvnet/__init__.py +0 -2
- {pvnet-3.0.27 → pvnet-3.0.28}/LICENSE +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/MANIFEST.in +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/PVNet.egg-info/SOURCES.txt +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/PVNet.egg-info/dependency_links.txt +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/PVNet.egg-info/requires.txt +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/PVNet.egg-info/top_level.txt +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/README.md +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/callbacks.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/data/__init__.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/data/base.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/data/datamodule.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/data/pv_site_datamodule.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/data/utils.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/data/wind_datamodule.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/__init__.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/baseline/__init__.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/baseline/last_value.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/baseline/single_value.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/ensemble.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/__init__.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/basic_blocks.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/encoders/__init__.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/encoders/basic_blocks.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/encoders/encoders2d.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/encoders/encoders3d.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/encoders/encodersRNN.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/linear_networks/__init__.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/linear_networks/basic_blocks.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/linear_networks/networks.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/multimodal.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/multimodal_base.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/site_encoders/__init__.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/site_encoders/basic_blocks.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/site_encoders/encoders.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/multimodal/unimodal_teacher.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/models/utils.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/optimizers.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/training.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pvnet/utils.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/pyproject.toml +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/requirements-dev.txt +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/requirements.txt +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/setup.cfg +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/setup.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/tests/__init__.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/tests/conftest.py +0 -0
- {pvnet-3.0.27 → pvnet-3.0.28}/tests/test_end2end.py +0 -0
|
@@ -506,7 +506,11 @@ class BaseModel(pl.LightningModule, PVNetModelHubMixin):
|
|
|
506
506
|
|
|
507
507
|
plot_name = f"val_forecast_samples/batch_idx_{accum_batch_num}_{plot_suffix}"
|
|
508
508
|
|
|
509
|
-
|
|
509
|
+
try:
|
|
510
|
+
self.logger.experiment.log({plot_name: wandb.Image(fig)})
|
|
511
|
+
except Exception as e:
|
|
512
|
+
print(f"Failed to log {plot_name} to wandb")
|
|
513
|
+
print(e)
|
|
510
514
|
plt.close(fig)
|
|
511
515
|
|
|
512
516
|
def validation_step(self, batch: dict, batch_idx):
|
|
@@ -580,15 +584,18 @@ class BaseModel(pl.LightningModule, PVNetModelHubMixin):
|
|
|
580
584
|
# Create the horizon accuracy curve
|
|
581
585
|
if isinstance(self.logger, pl.loggers.WandbLogger):
|
|
582
586
|
per_step_losses = [[i, horizon_maes_dict[i]] for i in range(self.forecast_len)]
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
587
|
+
try:
|
|
588
|
+
table = wandb.Table(data=per_step_losses, columns=["horizon_step", "MAE"])
|
|
589
|
+
wandb.log(
|
|
590
|
+
{
|
|
591
|
+
"horizon_loss_curve": wandb.plot.line(
|
|
592
|
+
table, "horizon_step", "MAE", title="Horizon loss curve"
|
|
593
|
+
)
|
|
594
|
+
},
|
|
595
|
+
)
|
|
596
|
+
except Exception as e:
|
|
597
|
+
print("Failed to log horizon_loss_curve to wandb")
|
|
598
|
+
print(e)
|
|
592
599
|
|
|
593
600
|
def test_step(self, batch, batch_idx):
|
|
594
601
|
"""Run test step"""
|
pvnet-3.0.27/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|