-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfigure7.sh
More file actions
33 lines (31 loc) · 1.05 KB
/
figure7.sh
File metadata and controls
33 lines (31 loc) · 1.05 KB
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
PYTHON_PATH="/opt/anaconda3/bin/python" ### your python path
SCRIPT_PATH="/CausalGraphCut/sim_MSE_norepeat.py" ### the path of sim_MSE_norepeat.py
cor_types=("example1" "example2" "example3")
pattern_types=("circle_hexagon" "hexagon" "fan_hexagon" "rectangle_hexagon")
for pattern in "${pattern_types[@]}"; do
case $pattern in
"hexagon")
grid=12
;;
"fan_hexagon")
grid=19
;;
"circle_hexagon")
grid=10
;;
"rectangle_hexagon")
grid=30
;;
# Add more patterns with corresponding grid sizes here
*)
echo "Unknown pattern: $pattern"
continue
;;
esac
for cor_type in "${cor_types[@]}"; do
for rho in $(seq 0.9 -0.1 0.2); do
echo "Running simulation with pattern=$pattern (size=$grid), cor-type=$cor_type and rho=$rho"
$PYTHON_PATH $SCRIPT_PATH --pattern="$pattern" --rho=$rho --cor-type="$cor_type" --sample-num=1 --grid-size=$grid
done
done
done