-
Notifications
You must be signed in to change notification settings - Fork 10
/
eval_carl.sh
40 lines (34 loc) · 959 Bytes
/
eval_carl.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
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
#SBATCH --job-name=slr-e-c
#SBATCH --output=log_eval_carl.log
#SBATCH --nodes=1
#SBATCH --cpus-per-task=1
#SBATCH --mem=32GB
#SBATCH --time=7-00:00:00
#SBATCH --gres=gpu:1
source activate lensing
base=/scratch/jb6504/recycling_strong_lensing/
cd $base/
# What to do
for tag in fix mass align full
do
modeltag=${tag}
echo ""
echo ""
echo ""
echo "Evaluating ${modeltag} on prior sample"
echo ""
python -u test.py carl_${modeltag} test_${tag}_prior carl_${modeltag}_prior --dir $base
echo ""
echo ""
echo ""
echo "Evaluating ${modeltag} on shuffled prior sample"
echo ""
python -u test.py carl_${modeltag} test_${tag}_prior carl_${modeltag}_shuffledprior --shuffle --dir $base
echo ""
echo ""
echo ""
echo "Evaluating ${modeltag} on point sample / param grid"
echo ""
python -u test.py carl_${modeltag} test_${tag}_point carl_${modeltag}_grid --grid --dir $base
done