-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_kappa_tests.sh
executable file
·37 lines (33 loc) · 1 KB
/
run_kappa_tests.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
#!/usr/bin/env bash
kappas=(-1 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 3)
if [ "$1" = "oei" ]; then
test_path="src"
use_gold="--use_gold_expert"
ucb_scale=0.4
elif [ "$1" = "conll" ]; then
test_path="conll_test"
use_gold=""
ucb_scale=0.2
fi
for kappa in "${kappas[@]}" ; do
sc_name="$1-k=${kappa}-kappa"
echo $sc_name
screen -dmS $sc_name
screen -x -S $sc_name -X stuff "conda activate nlp-crowdsourcing"
screen -x -S $sc_name -X stuff $'\n'
screen -x -S $sc_name -X stuff "python ${test_path}/main.py \
--average_over 10 \
--num_steps 10000 \
--annotation_num_per_sentence 4 \
--allow_exhaustion \
--evaluation_interval 0 \
--allow_fake_annotations \
--manager_type kappa_agg \
--metrics_type span_proportional \
--ucb_scale ${ucb_scale} \
--agg_method mv \
--use_fake_annotation_cache ${use_gold} \
--fleiss_kappa_threshold ${kappa}"
screen -x -S $sc_name -X stuff $'\n'
sleep 1s
done