-
Notifications
You must be signed in to change notification settings - Fork 5
/
ENVS.example
105 lines (90 loc) · 3.09 KB
/
ENVS.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
##
# The following variables set the environment, _HOME and _CONDA should be set to
# a default location to save you having to continually set these in your shell.
# _ENVIRONMENT can usually be left alone, it helps when running via symlinked
# pipeline directories which is common when running several distinct
# environments
#
export ICENET_ENVIRONMENT=${ICENET_ENVIRONMENT:-"$( basename `realpath .` )"}
export ICENET_HOME=${ICENET_HOME:-${HOME}/icenet/${ICENET_ENVIRONMENT}}
export ICENET_CONDA=${ICENET_CONDA:-${HOME}/miniconda3/envs/icenet}
##
# Setting the data download arguments for variables and pressures/depths
#
export DATA_ARGS_ERA5="--vars uas,vas,tas,zg --levels ',,,500|250'"
export DATA_ARGS_ORAS5=""
##
# Linking the preprocessing arguments to the above downloads, as well as the
# SIC ground truth for the model
#
export PROC_ARGS_ERA5="--abs uas,vas --anom tas,zg500,zg250"
export PROC_ARGS_ORAS5=""
export PROC_ARGS_SIC="--abs siconca --trends siconca --trend-lead 93"
##
# Training and prediction parameters
#
export TRAIN_STATIC_ARGS=""
export PREDICT_STATIC_ARGS=""
export FILTER_FACTOR=0.4
export FORECAST_DAYS=93
export LAG=3
export PREP_SCRIPT=local.sh
export BATCH_SIZE=4
export WORKERS=16
##
# HPC specifics - configure as appropriate for data (CPU) and training / prediction (GPU)
#
# --partition=medium
# --account=medium
# --time=12:00:00
# --nodes=1
#
export PREP_SCRIPT=example.sh
export ICENET_SLURM_ARGS="--chdir=$ICENET_HOME \
--output=${ICENET_HOME}/logs/icenet.%j.%N.out"
export ICENET_SLURM_DATA_PART="--partition cpu-example --time 48:00:00"
export ICENET_SLURM_RUN_PART="--partition gpu-example --time 24:00:00"
##
# Training date ranges
#
DEMO_PIPELINE_TRAIN_START="2022-1-1,2022-6-1"
DEMO_PIPELINE_TRAIN_END="2022-1-31,2022-6-30"
DEMO_PIPELINE_VAL_START="2022-2-1"
DEMO_PIPELINE_VAL_END="2022-2-14"
DEMO_PIPELINE_TEST_START="2022-2-15"
DEMO_PIPELINE_TEST_END="2022-2-28"
##
# Training & Prediction ensemble run seeds
#
DEMO_PIPELINE_ENSEMBLE_TRAIN_SEEDS="42,46"
DEMO_PIPELINE_ENSEMBLE_PREDICT_SEEDS="42,46"
##
# The prefix to use for training date ranges
#
PREFIX="DEMO_PIPELINE"
##
# USER NOTE: you shouldn't need to configure anything further after this point!
#
##
# Mapping variables, these shouldn't need changing but link to the usage of the
# variables in scripts, meaning you can alter the scripts simply by creating
# extra ranges and changing PREFIX
#
TRAIN_DATA_NAME=${PREFIX,,}
TRAIN_START_NAME="${PREFIX}_TRAIN_START"
TRAIN_END_NAME="${PREFIX}_TRAIN_END"
VAL_START_NAME="${PREFIX}_VAL_START"
VAL_END_NAME="${PREFIX}_VAL_END"
TEST_START_NAME="${PREFIX}_TEST_START"
TEST_END_NAME="${PREFIX}_TEST_END"
ENSEMBLE_TRAIN_SEEDS_NAME="${PREFIX}_ENSEMBLE_TRAIN_SEEDS"
ENSEMBLE_PREDICT_SEEDS_NAME="${PREFIX}_ENSEMBLE_PREDICT_SEEDS"
# What are we exporting
export TRAIN_START=${!TRAIN_START_NAME}
export TRAIN_END=${!TRAIN_END_NAME}
export VAL_START=${!VAL_START_NAME}
export VAL_END=${!VAL_END_NAME}
export TEST_START=${!TEST_START_NAME}
export TEST_END=${!TEST_END_NAME}
export ENSEMBLE_TRAIN_SEEDS=${!ENSEMBLE_TRAIN_SEEDS_NAME}
export ENSEMBLE_PREDICT_SEEDS=${!ENSEMBLE_PREDICT_SEEDS_NAME}