diff options
author | Yanbo Liang <ybliang8@gmail.com> | 2016-08-16 10:52:35 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2016-08-16 10:52:35 -0700 |
commit | d37ea3c09c054f2cc1305b2520ff46b2c0e58704 (patch) | |
tree | c776971f7cdbf7bac186bb69740d8b660506970e /R/pkg | |
parent | 12a89e55cbd630fa2986da984e066cd07d3bf1f7 (diff) | |
download | spark-d37ea3c09c054f2cc1305b2520ff46b2c0e58704.tar.gz spark-d37ea3c09c054f2cc1305b2520ff46b2c0e58704.tar.bz2 spark-d37ea3c09c054f2cc1305b2520ff46b2c0e58704.zip |
[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 <ybliang8@gmail.com>
Closes #14641 from yanboliang/weightCol.
Diffstat (limited to 'R/pkg')
-rw-r--r-- | R/pkg/R/mllib.R | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/R/pkg/R/mllib.R b/R/pkg/R/mllib.R index 25d9f077b4..6f6e2fc255 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)) }) |