PVNet 3.0.25__tar.gz → 3.0.26__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.25 → pvnet-3.0.26}/PKG-INFO +1 -1
- {pvnet-3.0.25 → pvnet-3.0.26}/PVNet.egg-info/PKG-INFO +1 -1
- pvnet-3.0.26/pvnet/__init__.py +2 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/multimodal.py +7 -1
- pvnet-3.0.25/pvnet/__init__.py +0 -2
- {pvnet-3.0.25 → pvnet-3.0.26}/LICENSE +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/MANIFEST.in +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/PVNet.egg-info/SOURCES.txt +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/PVNet.egg-info/dependency_links.txt +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/PVNet.egg-info/requires.txt +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/PVNet.egg-info/top_level.txt +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/README.md +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/callbacks.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/data/__init__.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/data/base.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/data/datamodule.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/data/pv_site_datamodule.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/data/utils.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/data/wind_datamodule.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/__init__.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/base_model.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/baseline/__init__.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/baseline/last_value.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/baseline/single_value.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/ensemble.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/__init__.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/basic_blocks.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/encoders/__init__.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/encoders/basic_blocks.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/encoders/encoders2d.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/encoders/encoders3d.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/encoders/encodersRNN.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/linear_networks/__init__.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/linear_networks/basic_blocks.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/linear_networks/networks.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/multimodal_base.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/site_encoders/__init__.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/site_encoders/basic_blocks.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/site_encoders/encoders.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/multimodal/unimodal_teacher.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/models/utils.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/optimizers.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/training.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pvnet/utils.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/pyproject.toml +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/requirements-dev.txt +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/requirements.txt +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/setup.cfg +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/setup.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/tests/__init__.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/tests/conftest.py +0 -0
- {pvnet-3.0.25 → pvnet-3.0.26}/tests/test_end2end.py +0 -0
|
@@ -57,6 +57,7 @@ class Model(MultimodalBaseModel):
|
|
|
57
57
|
pv_history_minutes: Optional[int] = None,
|
|
58
58
|
wind_history_minutes: Optional[int] = None,
|
|
59
59
|
sensor_history_minutes: Optional[int] = None,
|
|
60
|
+
sensor_forecast_minutes: Optional[int] = None,
|
|
60
61
|
optimizer: AbstractOptimizer = pvnet.optimizers.Adam(),
|
|
61
62
|
target_key: str = "gsp",
|
|
62
63
|
interval_minutes: int = 30,
|
|
@@ -121,6 +122,7 @@ class Model(MultimodalBaseModel):
|
|
|
121
122
|
addition to the full forecast
|
|
122
123
|
sensor_encoder: Encoder for sensor data
|
|
123
124
|
sensor_history_minutes: Length of recent sensor data used as input.
|
|
125
|
+
sensor_forecast_minutes: Length of forecast sensor data used as input.
|
|
124
126
|
adapt_batches: If set to true, we attempt to slice the batches to the expected shape for
|
|
125
127
|
the model to use. This allows us to overprepare batches and slice from them for the
|
|
126
128
|
data we need for a model run.
|
|
@@ -240,9 +242,13 @@ class Model(MultimodalBaseModel):
|
|
|
240
242
|
if self.include_sensor:
|
|
241
243
|
if sensor_history_minutes is None:
|
|
242
244
|
sensor_history_minutes = history_minutes
|
|
245
|
+
if sensor_forecast_minutes is None:
|
|
246
|
+
sensor_forecast_minutes = forecast_minutes
|
|
243
247
|
|
|
244
248
|
self.sensor_encoder = sensor_encoder(
|
|
245
|
-
sequence_length=sensor_history_minutes // sensor_interval_minutes
|
|
249
|
+
sequence_length=sensor_history_minutes // sensor_interval_minutes
|
|
250
|
+
+ sensor_forecast_minutes // sensor_interval_minutes
|
|
251
|
+
+ 1,
|
|
246
252
|
target_key_to_use=self._target_key_name,
|
|
247
253
|
input_key_to_use="sensor",
|
|
248
254
|
)
|
pvnet-3.0.25/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
|