You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by yl...@apache.org on 2016/09/09 12:43:42 UTC
spark git commit: [SPARK-17464][SPARKR][ML] SparkR spark.als argument
reg should be 0.1 by default.
Repository: spark
Updated Branches:
refs/heads/master 65b814bf5 -> 2ed601217
[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 <yb...@gmail.com>
Closes #15021 from yanboliang/spark-17464.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/2ed60121
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/2ed60121
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/2ed60121
Branch: refs/heads/master
Commit: 2ed601217ffd8945829ac762fae35202f3e55686
Parents: 65b814b
Author: Yanbo Liang <yb...@gmail.com>
Authored: Fri Sep 9 05:43:34 2016 -0700
Committer: Yanbo Liang <yb...@gmail.com>
Committed: Fri Sep 9 05:43:34 2016 -0700
----------------------------------------------------------------------
R/pkg/R/mllib.R | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/2ed60121/R/pkg/R/mllib.R
----------------------------------------------------------------------
diff --git a/R/pkg/R/mllib.R b/R/pkg/R/mllib.R
index f321fd1..f8d1095 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) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org