aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorYanbo Liang <ybliang8@gmail.com>2016-09-09 05:43:34 -0700
committerYanbo Liang <ybliang8@gmail.com>2016-09-09 05:43:34 -0700
commit2ed601217ffd8945829ac762fae35202f3e55686 (patch)
treeab507cde063fc6c3ce66eb22fc42c7550a76a502 /R
parent65b814bf50e92e2e9b622d1602f18bacd217181c (diff)
downloadspark-2ed601217ffd8945829ac762fae35202f3e55686.tar.gz
spark-2ed601217ffd8945829ac762fae35202f3e55686.tar.bz2
spark-2ed601217ffd8945829ac762fae35202f3e55686.zip
[SPARK-17464][SPARKR][ML] SparkR spark.als argument reg should be 0.1 by default.
## What changes were proposed in this pull request? SparkR ```spark.als``` arguments ```reg``` should be 0.1 by default, which need to be consistent with ML. ## How was this patch tested? Existing tests. Author: Yanbo Liang <ybliang8@gmail.com> Closes #15021 from yanboliang/spark-17464.
Diffstat (limited to 'R')
-rw-r--r--R/pkg/R/mllib.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/pkg/R/mllib.R b/R/pkg/R/mllib.R
index f321fd19b3..f8d1095a49 100644
--- a/R/pkg/R/mllib.R
+++ b/R/pkg/R/mllib.R
@@ -1241,7 +1241,7 @@ setMethod("predict", signature(object = "GaussianMixtureModel"),
#' @note spark.als since 2.1.0
setMethod("spark.als", signature(data = "SparkDataFrame"),
function(data, ratingCol = "rating", userCol = "user", itemCol = "item",
- rank = 10, reg = 1.0, maxIter = 10, nonnegative = FALSE,
+ rank = 10, reg = 0.1, maxIter = 10, nonnegative = FALSE,
implicitPrefs = FALSE, alpha = 1.0, numUserBlocks = 10, numItemBlocks = 10,
checkpointInterval = 10, seed = 0) {