Repository: spark Updated Branches: refs/heads/master 12a89e55c -> d37ea3c09
[MINOR][SPARKR] spark.glm weightCol should in the signature. ## What changes were proposed in this pull request? Fix the issue that ```spark.glm``` ```weightCol``` should in the signature. ## How was this patch tested? Existing tests. Author: Yanbo Liang <yblia...@gmail.com> Closes #14641 from yanboliang/weightCol. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d37ea3c0 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d37ea3c0 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d37ea3c0 Branch: refs/heads/master Commit: d37ea3c09c054f2cc1305b2520ff46b2c0e58704 Parents: 12a89e5 Author: Yanbo Liang <yblia...@gmail.com> Authored: Tue Aug 16 10:52:35 2016 -0700 Committer: Shivaram Venkataraman <shiva...@cs.berkeley.edu> Committed: Tue Aug 16 10:52:35 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/d37ea3c0/R/pkg/R/mllib.R ---------------------------------------------------------------------- diff --git a/R/pkg/R/mllib.R b/R/pkg/R/mllib.R index 25d9f07..6f6e2fc 100644 --- a/R/pkg/R/mllib.R +++ b/R/pkg/R/mllib.R @@ -140,7 +140,7 @@ setMethod("spark.glm", signature(data = "SparkDataFrame", formula = "formula"), jobj <- callJStatic("org.apache.spark.ml.r.GeneralizedLinearRegressionWrapper", "fit", formula, data@sdf, family$family, family$link, - tol, as.integer(maxIter), weightCol) + tol, as.integer(maxIter), as.character(weightCol)) return(new("GeneralizedLinearRegressionModel", jobj = jobj)) }) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org