Skip to content
Open
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
df1105f
initial example of two year data
rogerkuou Feb 27, 2026
fef01cf
update examples notebook
rogerkuou Feb 27, 2026
2b3ac47
add example training scritps
rogerkuou Feb 27, 2026
2bdf8b5
add example slurm file
rogerkuou Feb 27, 2026
1159fbc
update fig dir
rogerkuou Feb 27, 2026
3e2c4b4
add README
rogerkuou Feb 27, 2026
994d36b
Merge branch 'main' into 25_test_two_year_data
rogerkuou Feb 27, 2026
8cd1c8f
Apply suggestions from code review
rogerkuou Mar 18, 2026
fe8f024
fix conflicts
rogerkuou Mar 18, 2026
a3ba05d
separate training and inference
rogerkuou Mar 18, 2026
3c99673
update model exportation with checkpoint
rogerkuou Mar 18, 2026
2b4c7c5
add inference scripts
rogerkuou Mar 18, 2026
9ed2e00
use logging to replace print
rogerkuou Mar 18, 2026
1de1cfb
update example slurm scripts
rogerkuou Mar 18, 2026
efa17a1
force example notebook to be identical as main
rogerkuou Mar 26, 2026
25297dc
Apply suggestions from code review
rogerkuou Mar 26, 2026
6b04a27
revert changes in model file
rogerkuou Mar 26, 2026
ba0408f
remove inference script
rogerkuou Mar 26, 2026
74a180c
maintain the same config in example script as example notebook
rogerkuou Mar 26, 2026
eeb29ff
update the training loop
rogerkuou Mar 26, 2026
8481c08
update logger and log file
rogerkuou Mar 26, 2026
baba960
update the training script and slurm file
rogerkuou Mar 27, 2026
e89d4e4
document the efficiency calculation in README
rogerkuou Mar 27, 2026
3a5dbd6
add an example slurm log
rogerkuou Mar 27, 2026
4fd95d9
Merge branch 'main' into 25_test_two_year_data
rogerkuou Apr 20, 2026
fb94642
add docstring to datasets
rogerkuou Apr 20, 2026
17a8294
update example training script with train_monthly_model function
rogerkuou Apr 20, 2026
13714f9
update slurm
rogerkuou Apr 20, 2026
228c18a
update training script
rogerkuou Apr 20, 2026
8898cbf
add logger to training script
rogerkuou Apr 23, 2026
c799baf
enable printing in slurm logv files
rogerkuou Apr 23, 2026
92fbdeb
add constraints on the lattitude
rogerkuou Apr 23, 2026
3b9cae6
add slurm output file of a subset
rogerkuou Apr 23, 2026
7494f4a
add a full SLURM log file
rogerkuou Apr 23, 2026
a13472b
update readme
rogerkuou Apr 23, 2026
9cbd7e6
update slurm job time to 4hrs default
rogerkuou Apr 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions climanet/st_encoder_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,22 @@ def __init__(
num_months=num_months,
)
self.patch_size = patch_size

# Store config for easy model replication
self.config = {
'in_chans': in_chans,
'embed_dim': embed_dim,
'patch_size': patch_size,
'max_days': max_days,
'max_months': max_months,
'num_months': num_months,
'hidden': hidden,
'overlap': overlap,
'max_H': max_H,
'max_W': max_W,
'spatial_depth': spatial_depth,
'spatial_heads': spatial_heads,
}
Comment thread
rogerkuou marked this conversation as resolved.
Outdated

def forward(self, daily_data, daily_mask, land_mask_patch, padded_days_mask=None):
"""Forward pass of the Spatio-Temporal model.
Expand Down
Loading