-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclassify.sh
48 lines (24 loc) · 880 Bytes
/
classify.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
#!/usr/bin/sh
wget www.cse.iitd.ac.in/~cs5130702/graphSig.jar
cp graphSig.jar ca/graphSig.jar
cp graphSig.jar ci/graphSig.jar
python convert_all.py $1 gaston.txt $2 $3 $4
rm gaston.txt
rm labels.txt
time sh ca/sigGraph_ca.sh -pvalue=0.1 -minSup=0.1 ../data/aids.txt ../data/ca.txt &
time sh ci/sigGraph_ci.sh -pvalue=0.1 -minSup=0.1 ../data/aids.txt ../data/ci.txt
python correctFormat.py data/ca/significantGraphs.txt
python correctFormat.py data/ci/significantGraphs.txt
sh run.sh data/aids.txt data/ca/significantGraphs.txt.corrected data/ci/significantGraphs.txt.corrected data/test.txt
python ml.py data/ca.txt data/ci.txt data/test.txt
rm -rf data/ca
rm -rf data/ci
rm -rf ca/pafi-1.0.1/Linux/cg/*
rm -rf ci/pafi-1.0.1/Linux/cg/*
rm sig_ca.txt
rm sig_ci.txt
rm sig_ca_test.txt
rm sig_ci_test.txt
rm graphSig.jar
rm ca/graphSig.jar
rm ci/graphSig.jar