-
Notifications
You must be signed in to change notification settings - Fork 11
/
run-benchmark-old.sh
43 lines (35 loc) · 1.56 KB
/
run-benchmark-old.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
#!/bin/bash
invalue="$1"
if [[ "$invalue" = "" ]]
then
for dname in spheres mnist fmnist cifar10;
do
echo "[$dname]" >> algtime.txt
cd src/evaluation/models/topoae
sh run-topoae.sh $dname
cd ../../../..
echo "[RUN-PCA INFO] PCA embedding using $dname dataset..."
python3 src/evaluation/models/pca.py --data=$dname
echo "[RUN-PCA INFO] Finished PCA embedding!"
echo "[RUN-T-SNE INFO] T-SNE embedding using $dname dataset..."
python3 src/evaluation/models/tsne.py --data=$dname
echo "[RUN-T-SNE INFO] Finished T-SNE embedding!"
echo "[RUN-UMAP INFO] UMAP embedding using $dname dataset..."
python3 src/evaluation/models/umap__.py --data=$dname
echo "[RUN-UMAP INFO] Finished UMAP embedding!"
done
else # if data name is given, run for a specific dataset
echo "[$invalue]" >> algtime.txt
cd src/evaluation/models/topoae
sh run-topoae.sh $invalue
cd ../../../..
echo "[RUN-PCA INFO] PCA embedding using $invalue dataset..."
python3 src/evaluation/models/pca.py --data=$invalue
echo "[RUN-PCA INFO] Finished PCA embedding!"
echo "[RUN-T-SNE INFO] T-SNE embedding using $invalue dataset..."
python3 src/evaluation/models/tsne.py --data=$invalue
echo "[RUN-T-SNE INFO] Finished T-SNE embedding!"
echo "[RUN-UMAP INFO] UMAP embedding using $invalue dataset..."
python3 src/evaluation/models/umap__.py --data=$invalue
echo "[RUN-UMAP INFO] Finished UMAP embedding!"
fi