Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 70 lines (60 sloc) 1.82 KB
#!/usr/bin/env bash
#----problem: $1
irr_dims=( 1 2 3 4 5 6 7 8 9 10 )
distances=( "ID" "CJS" )
thresholds=( 0.3 0.5 0.8 )
#17 problems
problems=(
"2d_3_cubes_aligned_xor"
"2d_2_cubes_aligned"
"2d_2_cubes_xor"
"3d_2_cubes_aligned"
"3d_2_cubes_xor"
"3d_3_cubes_aligned"
"3d_3_cubes_aligned_xor"
"3d_3_cubes_xor"
"3d_4_cubes_1_aligned_xor"
"3d_4_cubes_2_aligned"
"3d_4_cubes_xor"
"4d_2_cubes_aligned"
"4d_3_cubes_aligned_xor"
"4d_3_cubes_xor"
"4d_4_cubes_aligned_xor"
"4d_4_cubes_2_aligned"
"4d_4_cubes_xor"
)
#function problem_run {
#
#python main.py -b=logs_quality -f=synthetic_cases/cubes/$1.csv -m=predefined -dist=$2 -t=$3 -notime -s &
#
#for i in "${irr_dims[@]}"
#do
# if [ "$2" == "CJS" ] && [ ${i} -gt 3 ]; then
# break
# fi
# python main.py -b=logs_quality -f=synthetic_cases/cubes/$1_$i.csv -m=original -dist=$2 -t=$3 -notime &
#
#done
#
#}
for problem in "${problems[@]}"
do
python main.py -b=logs_quality -f=synthetic_cases/cubes/${problem}.csv -m=trivial -notime &
for dist in "${distances[@]}"
do
for threshold in "${thresholds[@]}"
do
python main.py -b=logs_quality -f=synthetic_cases/cubes/${problem}.csv -m=predefined -dist=${dist} -t=${threshold} -notime -s &
for i in "${irr_dims[@]}"
do
if [ "$dist" == "CJS" ] && [ ${i} -gt 3 ]; then
break
fi
python main.py -b=logs_quality -f=synthetic_cases/cubes/${problem}_${i}.csv -m=original -dist=${dist} -t=${threshold} -notime &
done
# problem_run ${problem} ${dist} ${threshold} &
done
done
done
wait
python discretization_quality_measure.py -b=logs_quality