Skip to content
Snippets Groups Projects
Commit d37ea3c0 authored by Yanbo Liang's avatar Yanbo Liang Committed by Shivaram Venkataraman
Browse files

[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.
parent 12a89e55
No related branches found
No related tags found
No related merge requests found
......@@ -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))
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment