forked from axhertz/SimplicityDoneRight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepare.bash
executable file
·45 lines (36 loc) · 1.35 KB
/
prepare.bash
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
#!/bin/bash
cmake build -B./FocusedSampling -S./FocusedSampling/ -DCMAKE_BUILD_TYPE=Release
cmake --build ./FocusedSampling
#get data set
FILE=FocusedSampling/data/table/forest_data_normalised.csv
if [ -f "$FILE" ]; then
echo "$FILE already exists."
else
wget -P FocusedSampling/data/table/ wwwdb.inf.tu-dresden.de/misc/ForestData/forest_data_normalised.csv
fi
FILE=ConditionalSampling/forest.csv
if [ -f "$FILE" ]; then
echo "$FILE already exists."
else
wget -P ConditionalSampling/ wwwdb.inf.tu-dresden.de/misc/ForestData/forest.csv
fi
FILE=ConditionalSampling/buildCondSample/cond_sample_7q.pkl
if [ -f "$FILE" ]; then
echo "$FILE already exists."
else
wget -P ConditionalSampling/buildCondSample wwwdb.inf.tu-dresden.de/misc/ForestData/cond_sample_7q.pkl
fi
FILE=ConditionalSampling/buildCondSample/cond_sample_5q.pkl
if [ -f "$FILE" ]; then
echo "$FILE already exists."
else
wget -P ConditionalSampling/buildCondSample wwwdb.inf.tu-dresden.de/misc/ForestData/cond_sample_5q.pkl
fi
FILE=ConditionalSampling/buildCondSample/cond_sample_3q.pkl
if [ -f "$FILE" ]; then
echo "$FILE already exists."
else
wget -P ConditionalSampling/buildCondSample wwwdb.inf.tu-dresden.de/misc/ForestData/cond_sample_3q.pkl
fi
echo 'Conditional Sampling: Please run python3 evalCondSample'
echo 'Focused Sampling: cd FocusedSampling/bin ./main'