-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.sh
executable file
·34 lines (25 loc) · 1014 Bytes
/
run.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
#!/bin/bash
# Run all the experiments.
INFERENCE_DATASETS='citeseer cora epinions knowledge-graph-identification entity-resolution lastfm jester jester-full friendship-500M friendship-1B'
MEMORY_DATASETS='jester-full'
function main() {
trap exit SIGINT
# Fetch the data/models if they are not already present.
if [ ! -e psl-examples ]; then
echo "Models and data not found, fetching them."
./scripts/setup_psl_examples.sh
fi
local datasetPaths=''
for dataset in $INFERENCE_DATASETS; do
datasetPaths="${datasetPaths} psl-examples/${dataset}"
done
echo "Running inference experiments on datasets: [${INFERENCE_DATASETS}]."
./scripts/run_inference_experiments.sh $datasetPaths
datasetPaths=''
for dataset in $MEMORY_DATASETS; do
datasetPaths="${datasetPaths} psl-examples/${dataset}"
done
echo "Running memory experiments on datasets: [${MEMORY_DATASETS}]."
./scripts/run_memory_experiments.sh $datasetPaths
}
main "$@"