-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathALS_test.sh
More file actions
executable file
·58 lines (50 loc) · 931 Bytes
/
Copy pathALS_test.sh
File metadata and controls
executable file
·58 lines (50 loc) · 931 Bytes
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
#!/bin/bash
# script to test ALS functionality
set -e
if [ $# -eq 0 ]
then
echo ERROR usage: ./data_scaling.sh master jar sparkhome trainfile testfile
exit 1
fi
MASTER=$1
JAR=$2
SPARKHOME=$3
TRAINFILE=$4
TESTFILE=$5
# create synthetic data
sbt/sbt "run-main als_debug.Create_MC_Data
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train_sampfact=20
--sigma=0.1
--noise=true
--test=true
--test_sampfact=0.1
--trainfile=$TRAINFILE
--testfile=$TESTFILE
--rank=10
--m=500
--n=500"
# make data larger !
sbt/sbt "run-main als_debug.Matrix_Replicate
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--repfact=25
--nsplits=25
--m=500
--n=500"
TRAINFILE+="_replicated"
# run BALS ( could also do same thing with other input data )
sbt/sbt "run-main als_debug.Broadcast_ALS
--big=true
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--rank=10
--niter=10
--m=12500
--n=12500"