This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
forked from falsifian/plusone
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test
executable file
·84 lines (72 loc) · 2.27 KB
/
test
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/sh
export basedir=$PWD
# compile lda code
cd lib/lda-c-dist; make || exit
# compile using ant
cd $basedir; ant -f build.xml || exit
#data = {'med.out.1', 'test.5000.data'}
data='med.out'
if [ "$1" ];then
data=$1
fi
userdata=$data.`whoami`
echo $userdata
# download test.data if it doesn't exist
if test ! -f /tmp/$data.`whoami`; then
cd /tmp/
wget http://www.falsifian.org/a/9xwk/$data --output-document=$userdata
cd $basedir
fi
out_dir=experiment-$(date -u +%F.%T%Z)
if [ "$2" ];then
out_dir=$2
fi
mkdir $out_dir || exit
echo Output will go in $out_dir
#0.1,0.3,0.5,0.7,0.9 \
args=\
"-Dplusone.dataFile=/tmp/$userdata \
-Dplusone.crossValidation.FOLD=10 \
-Dplusone.crossValidation.run=false \
-Dplusone.testWordPercents=0.3 \
-Dplusone.trainPercents=0.95\
-Dplusone.kValues=1 \
-Dplusone.closestKValues=5,10,25,50,100,250,500 \
-Dplusone.closestKSVDishValues=5,10,25,50,100,250,500 \
-Dplusone.svdDimensions=5,15,25 \
-Dplusone.dtrw.walkLength=1 \
-Dplusone.dtrw.stoch=true \
-Dplusone.dtrw.nSampleWalks=100 \
-Dplusone.dtrw.normalizeDocsInWord=true \
-Dplusone.dtrw.normalizeWordsInDoc=true \
-Dplusone.svdishknn.nLevels=3
-Dplusone.svdishknn.docEnzs=20,60,120
-Dplusone.svdishknn.termEnzs=40,120,240
-Dplusone.svdishknn.dtNs=10,20,50
-Dplusone.svdishknn.tdNs=10,20,50
-Dplusone.svdishknn.numLVecs=800,400,200
-Dplusone.svdishknn.walkLength=3
-Dplusone.localCO.docEnzs=1500
-Dplusone.localCO.termEnzs=15000
-Dplusone.localCO.dtNs=500
-Dplusone.localCO.tdNs=1200
-Dplusone.enableTest.localCO=false \
-Dplusone.enableTest.lda=false \
-Dplusone.enableTest.knnc=false \
-Dplusone.enableTest.knn=false \
-Dplusone.enableTest.knnrw=false \
-Dplusone.enableTest.dtrw=false \
-Dplusone.enableTest.baseline=true \
-Dplusone.enableTest.lsi=false \
-Dplusone.enableTest.svdknn=false \
-Dplusone.enableTest.svdishknn=true \
-Dplusone.outPath=$out_dir \
-Dplusone.dumpMeta=false \
-Dplusone.randomSeed=9"
# options to sample cpu
# -agentlib:hprof=cpu=samples
# -agentlib:hprof=heap=sites
# options for memory
# -Xmx4096m
#java -agentlib:hprof=cpu=samples -Xmx4096m -cp Plusone.jar:lib/jars/ejml-0.17.jar $args plusone.Main
java -Xmx4096m -cp Plusone.jar:lib/jars/ejml-0.17.jar:lib/jars/gson-1.7.1.jar:lib/colt-1.2.0.jar:lib/commons-lang-2.6.jar $args plusone.Main