From 275fd85df4367ffc7c17b1bb61494ba7d03c497f Mon Sep 17 00:00:00 2001 From: Yanbo Liang Date: Thu, 8 Sep 2016 21:08:34 -0700 Subject: [PATCH] SparkR spark.als arguments reg should be 0.1 by default. --- R/pkg/R/mllib.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/pkg/R/mllib.R b/R/pkg/R/mllib.R index f321fd19b39b4..f8d1095a493dc 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) {