Uh oh!
There was an error while loading. Please reload this page.
[SPARK-15444][PySpark][ML][HotFix] Default value mismatch of param linkPredictionCol for GeneralizedLinearRegression - #13220
[SPARK-15444][PySpark][ML][HotFix] Default value mismatch of param linkPredictionCol for GeneralizedLinearRegression#13220viirya wants to merge 2 commits into
Conversation
viirya
commented
May 20, 2016
MLnick
commented
May 20, 2016
@viirya ah thanks I should have picked up the discrepancy. cc @holdenk@yanboliang |
| "org.apache.spark.ml.regression.GeneralizedLinearRegression", self.uid) | ||
| self._setDefault(family="gaussian", maxIter=25, tol=1e-6, regParam=0.0, solver="irls", | ||
| linkPredictionCol="") | ||
| self._setDefault(family="gaussian", maxIter=25, tol=1e-6, regParam=0.0, solver="irls") |
There was a problem hiding this comment.
Perhaps we should then make the default in __init__ and setParams be None rather than ""?
There was a problem hiding this comment.
I was not sure about this. So just following other similar params in other classes.
There was a problem hiding this comment.
Sounds good. Let me update it.
There was a problem hiding this comment.
I think the setDefault change you have is fine - I mean the default
constructor param
On Fri, 20 May 2016 at 11:37, Liang-Chi Hsieh notifications@github.com
wrote:
In python/pyspark/ml/regression.py
#13220 (comment):@@ -1312,8 +1312,7 @@ def init(self, labelCol="label", featuresCol="features", predictionCol="pred
super(GeneralizedLinearRegression, self).init()
self._java_obj = self._new_java_obj(
"org.apache.spark.ml.regression.GeneralizedLinearRegression", self.uid)
self._setDefault(family="gaussian", maxIter=25, tol=1e-6, regParam=0.0, solver="irls",linkPredictionCol="")self._setDefault(family="gaussian", maxIter=25, tol=1e-6, regParam=0.0, solver="irls")I was not sure about this. So just following other similar params in other
classes.—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/apache/spark/pull/13220/files/132753838a1424f09d85003a4436bb7ce0bd7774#r64014350
SparkQA
commented
May 20, 2016
Test build #58973 has finished for PR 13220 at commit
|
MLnick
commented
May 20, 2016
Fortunately it doesn't actually impact since there is a |
@MLnick unit tests in ml.tests will be failed due to this. This should be the only impact I think. |
SparkQA
commented
May 20, 2016
Test build #58975 has finished for PR 13220 at commit
|
viirya
commented
May 20, 2016
@MLnick Please see if this is fine for you now. Thanks. |
yanboliang
commented
May 20, 2016
This fix looks good. Thanks! @viirya |
viirya
commented
May 20, 2016
Thank you @yanboliang |
viirya
commented
May 20, 2016
ping @MLnick |
…nkPredictionCol for GeneralizedLinearRegression ## What changes were proposed in this pull request? Default value mismatch of param linkPredictionCol for GeneralizedLinearRegression between PySpark and Scala. That is because default value conflict between #13106 and #13129. This causes ml.tests failed. ## How was this patch tested? Existing tests. Author: Liang-Chi Hsieh <simonh@tw.ibm.com> Closes#13220 from viirya/hotfix-regresstion. (cherry picked from commit 4e73933) Signed-off-by: Nick Pentreath <nickp@za.ibm.com>
MLnick
commented
May 20, 2016
Merged to master/branch-2.0. Thanks @viirya! |
viirya
commented
May 20, 2016
Thank you @MLnick |
holdenk
commented
May 20, 2016
Thanks for fixing this @viirya :) |
What changes were proposed in this pull request?
Default value mismatch of param linkPredictionCol for GeneralizedLinearRegression between PySpark and Scala. That is because default value conflict between #13106 and #13129. This causes ml.tests failed.
How was this patch tested?
Existing tests.