-
Notifications
You must be signed in to change notification settings - Fork 5
/
run_qa.sh
executable file
·63 lines (57 loc) · 1.65 KB
/
run_qa.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#! /bin/bash
# Run conformal evaluation on open-domain qa.
set -ex
# Need split!
if [ "$#" -ne 1 ]
then
echo "Please supply split."
exit 1
fi
# Take the split as a commandline arg.
split=$1
# Compute baseline CP without expanded admission.
python qa/conformal_open_qa.py \
--metrics=sum \
--smoothed=true \
--eval_file=data/open-qa/preds_$split.json \
--cache_data=true \
--num_trials=20 \
--outer_threads=0 \
--inner_threads=40 \
--cuda=true \
--skip_baselines=true \
--equivalence=false \
--output_dir=results/$split \
--absolute_efficiency \
--epsilons=0.1,0.2,0.3,0.4
# Compute noncascade CP with expanded admission.
python qa/conformal_open_qa.py \
--metrics=sum \
--smoothed=true \
--eval_file=data/open-qa/preds_$split.json \
--cache_data=true \
--num_trials=20 \
--outer_threads=0 \
--inner_threads=40 \
--cuda=true \
--skip_baselines=true \
--equivalence=true \
--output_dir=results/$split \
--absolute_efficiency \
--epsilons=0.1,0.2,0.3,0.4
# Compute cascaded CP with expanded admission.
python qa/conformal_open_qa.py \
--metrics=psg_score,relevance_logit,start_logit,end_logit \
--smoothed=true \
--correction=simes \
--eval_file=data/open-qa/preds_$split.json \
--cache_data=true \
--num_trials=20 \
--outer_threads=0 \
--inner_threads=40 \
--cuda=true \
--skip_baselines=true \
--equivalence=true \
--output_dir=results/$split \
--absolute_efficiency \
--epsilons=0.1,0.2,0.3,0.4