PVNet 5.3.4__tar.gz → 5.3.5__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-5.3.4 → pvnet-5.3.5}/PKG-INFO +2 -2
- {pvnet-5.3.4 → pvnet-5.3.5}/PVNet.egg-info/PKG-INFO +2 -2
- {pvnet-5.3.4 → pvnet-5.3.5}/PVNet.egg-info/requires.txt +1 -1
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/late_fusion.py +9 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pyproject.toml +1 -1
- {pvnet-5.3.4 → pvnet-5.3.5}/LICENSE +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/PVNet.egg-info/SOURCES.txt +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/PVNet.egg-info/dependency_links.txt +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/PVNet.egg-info/top_level.txt +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/README.md +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/__init__.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/datamodule.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/load_model.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/__init__.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/base_model.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/ensemble.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/__init__.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/basic_blocks.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/encoders/__init__.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/encoders/basic_blocks.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/encoders/encoders3d.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/linear_networks/__init__.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/linear_networks/basic_blocks.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/linear_networks/networks.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/site_encoders/__init__.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/site_encoders/basic_blocks.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/site_encoders/encoders.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/optimizers.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/training/__init__.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/training/lightning_module.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/training/plots.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/training/train.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/utils.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/setup.cfg +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/tests/test_datamodule.py +0 -0
- {pvnet-5.3.4 → pvnet-5.3.5}/tests/test_end2end.py +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PVNet
|
|
3
|
-
Version: 5.3.
|
|
3
|
+
Version: 5.3.5
|
|
4
4
|
Summary: PVNet
|
|
5
5
|
Author-email: Peter Dudfield <info@openclimatefix.org>
|
|
6
6
|
Requires-Python: <3.14,>=3.11
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
License-File: LICENSE
|
|
9
|
-
Requires-Dist: ocf-data-sampler>=0.
|
|
9
|
+
Requires-Dist: ocf-data-sampler>=1.0.9
|
|
10
10
|
Requires-Dist: numpy
|
|
11
11
|
Requires-Dist: pandas
|
|
12
12
|
Requires-Dist: matplotlib
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PVNet
|
|
3
|
-
Version: 5.3.
|
|
3
|
+
Version: 5.3.5
|
|
4
4
|
Summary: PVNet
|
|
5
5
|
Author-email: Peter Dudfield <info@openclimatefix.org>
|
|
6
6
|
Requires-Python: <3.14,>=3.11
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
License-File: LICENSE
|
|
9
|
-
Requires-Dist: ocf-data-sampler>=0.
|
|
9
|
+
Requires-Dist: ocf-data-sampler>=1.0.9
|
|
10
10
|
Requires-Dist: numpy
|
|
11
11
|
Requires-Dist: pandas
|
|
12
12
|
Requires-Dist: matplotlib
|
|
@@ -46,6 +46,7 @@ class LateFusionModel(BaseModel):
|
|
|
46
46
|
include_generation_history: bool = False,
|
|
47
47
|
include_sun: bool = True,
|
|
48
48
|
include_time: bool = False,
|
|
49
|
+
t0_embedding_dim: int = 0,
|
|
49
50
|
location_id_mapping: dict[Any, int] | None = None,
|
|
50
51
|
embedding_dim: int = 16,
|
|
51
52
|
forecast_minutes: int = 30,
|
|
@@ -85,6 +86,8 @@ class LateFusionModel(BaseModel):
|
|
|
85
86
|
include_generation_history: Include generation yield data.
|
|
86
87
|
include_sun: Include sun azimuth and altitude data.
|
|
87
88
|
include_time: Include sine and cosine of dates and times.
|
|
89
|
+
t0_embedding_dim: Shape of the embedding of the init-time (t0) of the forecast. Not used
|
|
90
|
+
if set to 0.
|
|
88
91
|
location_id_mapping: A dictionary mapping the location ID to an integer. ID embedding is
|
|
89
92
|
not used if this is not provided.
|
|
90
93
|
embedding_dim: Number of embedding dimensions to use for location ID.
|
|
@@ -119,6 +122,7 @@ class LateFusionModel(BaseModel):
|
|
|
119
122
|
self.include_pv = pv_encoder is not None
|
|
120
123
|
self.include_sun = include_sun
|
|
121
124
|
self.include_time = include_time
|
|
125
|
+
self.t0_embedding_dim = t0_embedding_dim
|
|
122
126
|
self.location_id_mapping = location_id_mapping
|
|
123
127
|
self.embedding_dim = embedding_dim
|
|
124
128
|
self.add_image_embedding_channel = add_image_embedding_channel
|
|
@@ -246,6 +250,8 @@ class LateFusionModel(BaseModel):
|
|
|
246
250
|
# Update num features
|
|
247
251
|
fusion_input_features += 32
|
|
248
252
|
|
|
253
|
+
fusion_input_features += self.t0_embedding_dim
|
|
254
|
+
|
|
249
255
|
if include_generation_history:
|
|
250
256
|
# Update num features
|
|
251
257
|
fusion_input_features += self.history_len + 1
|
|
@@ -321,6 +327,9 @@ class LateFusionModel(BaseModel):
|
|
|
321
327
|
time = self.time_fc1(time)
|
|
322
328
|
modes["time"] = time
|
|
323
329
|
|
|
330
|
+
if self.t0_embedding_dim>0:
|
|
331
|
+
modes["t0_embed"] = x["t0_embedding"]
|
|
332
|
+
|
|
324
333
|
out = self.output_network(modes)
|
|
325
334
|
|
|
326
335
|
if self.use_quantile_regression:
|
|
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
|