This repository was archived by the owner on Dec 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
sparkbench/ml/src/main/scala/com/intel/sparkbench/ml Expand file tree Collapse file tree Original file line number Diff line number Diff line change 103103 IMPLICITPREFS_ALS = "hibench.als.implicitprefs" ,
104104 RANK_ALS = "hibench.als.rank" ,
105105 NUM_RECOMMENDS_ALS = "hibench.als.recommends" ,
106- NUM_ITERATIONS_ALS = "hibench.als.num_iterations " ,
106+ NUM_ITERATIONS_ALS = "hibench.als.numIterations " ,
107107 LAMBDA_ALS = "hibench.als.Lambda" ,
108108 KYRO_ALS = "hibench.als.kyro" ,
109+ USERBLOCKS_ALS = "hibench.als.numUserBlocks" ,
110+ PRODUCTBLOCKS_ALS = "hibench.als.numProductBlocks" ,
109111 # For PCA
110112 NUM_EXAMPLES_PCA = "hibench.pca.examples" ,
111113 NUM_FEATURES_PCA = "hibench.pca.features" ,
Original file line number Diff line number Diff line change @@ -27,8 +27,17 @@ rmr_hdfs $OUTPUT_HDFS || true
2727
2828SIZE=` dir_size $INPUT_HDFS `
2929START_TIME=` timestamp`
30-
31- run_spark_job com.intel.hibench.sparkbench.ml.ALSExample --numUsers $NUM_USERS_ALS --numProducts $NUM_PRODUCTS_ALS --rank $RANK_ALS --numRecommends $NUM_RECOMMENDS_ALS --numIterations $NUM_ITERATIONS_ALS --lambda $LAMBDA_ALS --kryo $KYRO_ALS --implicitPrefs $IMPLICITPREFS_ALS $INPUT_HDFS
30+ OPTION=" --numUsers $NUM_USERS_ALS \
31+ --numProducts $NUM_PRODUCTS_ALS \
32+ --rank $RANK_ALS \
33+ --numRecommends $NUM_RECOMMENDS_ALS \
34+ --numIterations $NUM_ITERATIONS_ALS \
35+ --kryo $KYRO_ALS \
36+ --implicitPrefs $IMPLICITPREFS_ALS \
37+ --numProductBlocks $PRODUCTBLOCKS_ALS \
38+ --numUserBlocks $USERBLOCKS_ALS \
39+ --lambda $LAMBDA_ALS "
40+ run_spark_job com.intel.hibench.sparkbench.ml.ALSExample $OPTION $INPUT_HDFS
3241END_TIME=` timestamp`
3342
3443gen_report ${START_TIME} ${END_TIME} ${SIZE}
Original file line number Diff line number Diff line change @@ -32,9 +32,11 @@ hibench.als.partitions ${hibench.default.map.parallelism}
3232
3333hibench.als.rank 10
3434hibench.als.recommends 20
35- hibench.als.num_iterations 20
35+ hibench.als.numIterations 20
3636hibench.als.Lambda 1.0
3737hibench.als.kyro false
38+ hibench.als.numUserBlocks -1
39+ hibench.als.numProductBlocks -1
3840
3941hibench.workload.input ${hibench.hdfs.data.dir}/ALS/Input
4042hibench.workload.output ${hibench.hdfs.data.dir}/ALS/Output
Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ object ALSExample {
7070 .text(" Kryo serialization, default: ${defaultParams.kryo}" )
7171 .action((x, c) => c.copy(kryo = x))
7272 opt[Int ](" numUserBlocks" )
73- .text(s " number of user blocks, default: ${defaultParams.numUserBlocks} (auto) " )
73+ .text(s " number of user blocks, default: ${defaultParams.numUserBlocks}" )
7474 .action((x, c) => c.copy(numUserBlocks = x))
7575 opt[Int ](" numProductBlocks" )
76- .text(s " number of product blocks, default: ${defaultParams.numProductBlocks} (auto) " )
76+ .text(s " number of product blocks, default: ${defaultParams.numProductBlocks}" )
7777 .action((x, c) => c.copy(numProductBlocks = x))
7878 opt[Boolean ](" implicitPrefs" )
7979 .text(" implicit preference, default: ${defaultParams.implicitPrefs}" )
You can’t perform that action at this time.
0 commit comments