-
Notifications
You must be signed in to change notification settings - Fork 0
/
rank_scaling.sh
executable file
·61 lines (52 loc) · 1.06 KB
/
rank_scaling.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
# script to reproduce scaling issues with join_als
set -e
if [ $# -eq 0 ]
then
echo ERROR usage: ./rank_scaling.sh master jar sparkhome trainfile
exit 1
fi
MASTER=$1
JAR=$2
SPARKHOME=$3
TRAINFILE=$4
# run with smaller rank (10)
sbt/sbt "run-main als_debug.Join_ALS
--blocked=true
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--nsplits=32
--rank=10" 2>&1 | tee rank_10_log_0606
# slightly bigger rank (20)
sbt/sbt "run-main als_debug.Join_ALS
--blocked=true
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--nsplits=32
--rank=20" 2>&1 | tee rank_20_log_0606
# a little bigger... rank (30)
sbt/sbt "run-main als_debug.Join_ALS
--blocked=true
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--nsplits=32
--rank=30" 2>&1 | tee rank_30_log_0606
# bigger rank (100)
sbt/sbt "run-main als_debug.Join_ALS
--blocked=true
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--nsplits=32
--rank=100" 2>&1 | tee rank_100_log_0606