@@ -63,6 +63,7 @@ def __init__(
63
63
pv_interval_minutes : int = 5 ,
64
64
sat_interval_minutes : int = 5 ,
65
65
sensor_interval_minutes : int = 30 ,
66
+ wind_interval_minutes : int = 15 ,
66
67
image_embedding_dim : Optional [int ] = 318 ,
67
68
timestep_intervals_to_plot : Optional [list [int ]] = None ,
68
69
):
@@ -107,6 +108,7 @@ def __init__(
107
108
optimizer: Optimizer factory function used for network.
108
109
target_key: The key of the target variable in the batch.
109
110
interval_minutes: The interval between each sample of the target data
111
+ wind_interval_minutes: The interval between each sample of the wind data
110
112
wind_encoder: Encoder for wind data
111
113
wind_history_minutes: Length of recent wind data used as input.
112
114
pv_interval_minutes: The interval between each sample of the PV data
@@ -204,7 +206,7 @@ def __init__(
204
206
assert pv_history_minutes is not None
205
207
206
208
self .pv_encoder = pv_encoder (
207
- sequence_length = pv_history_minutes // pv_interval_minutes ,
209
+ sequence_length = pv_history_minutes // pv_interval_minutes + 1 ,
208
210
)
209
211
210
212
# Update num features
@@ -215,7 +217,7 @@ def __init__(
215
217
wind_history_minutes = history_minutes
216
218
217
219
self .wind_encoder = wind_encoder (
218
- sequence_length = wind_history_minutes // interval_minutes
220
+ sequence_length = wind_history_minutes // wind_interval_minutes + 1
219
221
)
220
222
221
223
# Update num features
@@ -226,7 +228,7 @@ def __init__(
226
228
sensor_history_minutes = history_minutes
227
229
228
230
self .sensor_encoder = sensor_encoder (
229
- sequence_length = sensor_history_minutes // sensor_interval_minutes
231
+ sequence_length = sensor_history_minutes // sensor_interval_minutes + 1
230
232
)
231
233
232
234
# Update num features
0 commit comments