You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sh...@apache.org on 2016/08/16 17:52:39 UTC

spark git commit: [MINOR][SPARKR] spark.glm weightCol should in the signature.

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 <yb...@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 <yb...@gmail.com>
Authored: Tue Aug 16 10:52:35 2016 -0700
Committer: Shivaram Venkataraman <sh...@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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org