-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path7-job_gxe.sh
30 lines (25 loc) · 886 Bytes
/
7-job_gxe.sh
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
#!/bin/bash
#SBATCH --partition=himem72
#SBATCH --nodes=1
#SBATCH --tasks-per-node=16
#SBATCH --time=72:00:00
## configs
module purge
module load gcc/9.3.1 mkl/19.0.5 python/anaconda-3.10
source /share/apps/bin/conda-3.10.sh
conda deactivate
conda activate maize_gxe_prediction
## fit GxE models
for cv in {0..2}
do
echo "CV=${cv}"
for fold in {0..4}
do
echo "Fold=${fold}"
python3 -u src/run_g_or_gxe_model.py --cv=${cv} --fold=${fold} --seed=${seed} --model=GxE --A --svd --lag_features > "logs/gxe_model_A_svd_cv${cv}_fold${fold}_seed${seed}_lag_features.txt"
echo '[GxE] A model ok'
python3 -u src/run_g_or_gxe_model.py --cv=${cv} --fold=${fold} --seed=${seed} --model=GxE --D --svd --lag_features > "logs/gxe_model_D_svd_cv${cv}_fold${fold}_seed${seed}_lag_features.txt"
echo '[GxE] D model ok'
done
echo " "
done