-
Notifications
You must be signed in to change notification settings - Fork 0
/
bals_rank_scaling.sh
executable file
·65 lines (56 loc) · 1.12 KB
/
bals_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
62
63
64
65
#!/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.Broadcast_ALS
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--m=17770
--npslits=32
--n=480189
--rank=40" 2>&1 | tee bals_rank_40_log_0610
# slightly bigger rank (20)
sbt/sbt "run-main als_debug.Broadcast_ALS
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--m=17770
--npslits=32
--n=480189
--rank=50" 2>&1 | tee bals_rank_50_log_0610
# a little bigger... rank (30)
sbt/sbt "run-main als_debug.Broadcast_ALS
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--m=17770
--npslits=32
--n=480189
--rank=60" 2>&1 | tee bals_rank_60_log_0610
# bigger rank (100)
sbt/sbt "run-main als_debug.Broadcast_ALS
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--m=17770
--npslits=32
--n=480189
--rank=100" 2>&1 | tee bals_rank_100_log_0610