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.
Files changed (36) hide show
  1. {pvnet-5.3.4 → pvnet-5.3.5}/PKG-INFO +2 -2
  2. {pvnet-5.3.4 → pvnet-5.3.5}/PVNet.egg-info/PKG-INFO +2 -2
  3. {pvnet-5.3.4 → pvnet-5.3.5}/PVNet.egg-info/requires.txt +1 -1
  4. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/late_fusion.py +9 -0
  5. {pvnet-5.3.4 → pvnet-5.3.5}/pyproject.toml +1 -1
  6. {pvnet-5.3.4 → pvnet-5.3.5}/LICENSE +0 -0
  7. {pvnet-5.3.4 → pvnet-5.3.5}/PVNet.egg-info/SOURCES.txt +0 -0
  8. {pvnet-5.3.4 → pvnet-5.3.5}/PVNet.egg-info/dependency_links.txt +0 -0
  9. {pvnet-5.3.4 → pvnet-5.3.5}/PVNet.egg-info/top_level.txt +0 -0
  10. {pvnet-5.3.4 → pvnet-5.3.5}/README.md +0 -0
  11. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/__init__.py +0 -0
  12. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/datamodule.py +0 -0
  13. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/load_model.py +0 -0
  14. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/__init__.py +0 -0
  15. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/base_model.py +0 -0
  16. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/ensemble.py +0 -0
  17. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/__init__.py +0 -0
  18. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/basic_blocks.py +0 -0
  19. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/encoders/__init__.py +0 -0
  20. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/encoders/basic_blocks.py +0 -0
  21. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/encoders/encoders3d.py +0 -0
  22. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/linear_networks/__init__.py +0 -0
  23. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/linear_networks/basic_blocks.py +0 -0
  24. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/linear_networks/networks.py +0 -0
  25. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/site_encoders/__init__.py +0 -0
  26. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/site_encoders/basic_blocks.py +0 -0
  27. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/models/late_fusion/site_encoders/encoders.py +0 -0
  28. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/optimizers.py +0 -0
  29. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/training/__init__.py +0 -0
  30. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/training/lightning_module.py +0 -0
  31. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/training/plots.py +0 -0
  32. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/training/train.py +0 -0
  33. {pvnet-5.3.4 → pvnet-5.3.5}/pvnet/utils.py +0 -0
  34. {pvnet-5.3.4 → pvnet-5.3.5}/setup.cfg +0 -0
  35. {pvnet-5.3.4 → pvnet-5.3.5}/tests/test_datamodule.py +0 -0
  36. {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.4
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.6.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.4
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.6.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,4 +1,4 @@
1
- ocf-data-sampler>=0.6.0
1
+ ocf-data-sampler>=1.0.9
2
2
  numpy
3
3
  pandas
4
4
  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:
@@ -12,7 +12,7 @@ readme = {file="README.md", content-type="text/markdown"}
12
12
  requires-python = ">=3.11,<3.14"
13
13
 
14
14
  dependencies = [
15
- "ocf-data-sampler>=0.6.0",
15
+ "ocf-data-sampler>=1.0.9",
16
16
  "numpy",
17
17
  "pandas",
18
18
  "matplotlib",
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