Skip to content

Commit

Permalink
Split Wind multimodal config to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Nov 27, 2023
1 parent 6dccd2f commit 400bf11
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 13 deletions.
13 changes: 0 additions & 13 deletions configs/model/multimodal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,6 @@ pv_encoder:
kdim: 40
pv_id_embed_dim: 20

#--------------------------------------------
# Sensor encoder settings
#--------------------------------------------

sensor_encoder:
_target_: pvnet.models.multimodal.site_encoders.encoders.SingleSensorAttentionNetwork
_partial_: True
num_sites: 123
out_features: 40
num_heads: 4
kdim: 40
sensor_id_embed_dim: 20

#--------------------------------------------
# Tabular network settings
#--------------------------------------------
Expand Down
74 changes: 74 additions & 0 deletions configs/model/wind_multimodal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
_target_: pvnet.models.multimodal.multimodal.Model

output_quantiles: [0.02, 0.1, 0.25, 0.5, 0.75, 0.9, 0.98]

#--------------------------------------------
# NWP encoder
#--------------------------------------------

nwp_encoder:
_target_: pvnet.models.multimodal.encoders.encoders3d.DefaultPVNet
_partial_: True
in_channels: 2
out_features: 256
number_of_conv3d_layers: 6
conv3d_channels: 32
image_size_pixels: 24


#--------------------------------------------
# Sensor encoder settings
#--------------------------------------------

sensor_encoder:
_target_: pvnet.models.multimodal.site_encoders.encoders.SingleSensorAttentionNetwork
_partial_: True
num_sites: 123
out_features: 40
num_heads: 4
kdim: 40
sensor_id_embed_dim: 20

#--------------------------------------------
# Tabular network settings
#--------------------------------------------

output_network:
_target_: pvnet.models.multimodal.linear_networks.networks.ResFCNet2
_partial_: True
fc_hidden_features: 128
n_res_blocks: 6
res_block_layers: 2
dropout_frac: 0.0

embedding_dim: 16
include_sun: False
include_gsp_yield_history: False

#--------------------------------------------
# Times
#--------------------------------------------

# Foreast and time settings
forecast_minutes: 480
history_minutes: 120

min_sat_delay_minutes: 60

# --- set to null if same as history_minutes ---
sat_history_minutes: 90
nwp_history_minutes: 120
nwp_forecast_minutes: 480
pv_history_minutes: 180

# ----------------------------------------------
# Optimizer
# ----------------------------------------------
optimizer:
_target_: pvnet.optimizers.EmbAdamWReduceLROnPlateau
lr: 0.0001
weight_decay: 0.01
amsgrad: True
patience: 5
factor: 0.1
threshold: 0.002

0 comments on commit 400bf11

Please sign in to comment.