-
Notifications
You must be signed in to change notification settings - Fork 0
/
final_exps.sh
executable file
·43 lines (37 loc) · 1.02 KB
/
final_exps.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
#!/usr/bin/env bash
# Check if API keys are set
if [[ -z ${OPENAI_API_KEY} ]]; then
echo "Set OPENAI_API_KEY environment variable before running the experiment"
exit 1
fi
if [[ -z ${GMAPS_API_KEY} ]]; then
echo "Set GMAPS_API_KEY environment variable before running the experiment"
exit 1
fi
DATA_DIR=Data/
if [ ! -d ${DATA_DIR} ]; then
echo "Ensure data directory ${DATA_DIR} exists before running the experiment"
exit 1
fi
# 20 percent original run, 1994 seed, all defaults etc
dataset_name=$1
output_dir=final_results/20percent
# Run baselines
python final_exps.py \
--output_dir ${output_dir} \
--dataset_name ${dataset_name} \
--percent_labeled 20 \
--seed 1994 \
--run_knn \
--run_clip_zero \
--run_clip_supervised \
# Run AiSciVision ablations
python final_exps.py \
--output_dir ${output_dir} \
--dataset_name ${dataset_name} \
--percent_labeled 20 \
--seed 1994 \
--run_gpt_alone \
--run_gpt_tools \
--run_gpt_visrag \
--run_gpt_visrag_tools