-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-15316][PySpark][ML] Add linkPredictionCol to GeneralizedLinearRegression #13106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-15316][PySpark][ML] Add linkPredictionCol to GeneralizedLinearRegression #13106
Conversation
…c to generate the bullet list
|
Test build #58592 has finished for PR 13106 at commit
|
python/pyspark/ml/regression.py
Outdated
| ... (2.0, Vectors.dense(1.0, 1.0)),], ["label", "features"]) | ||
| >>> glr = GeneralizedLinearRegression(family="gaussian", link="identity") | ||
| >>> glr = GeneralizedLinearRegression(family="gaussian", link="identity", linkPredictionCol="p") | ||
| >>> print(glr.getLinkPredictionCol()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor, but is this really necessary? By definition it would be set correctly if the test below succeeds >>> abs(transformed.head().p - 1.5) < 0.001
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I'll remove it.
|
A minor comment, otherwise LGTM. |
|
Test build #58630 has finished for PR 13106 at commit
|
|
LGTM |
|
Shall we merge then? |
|
Yup - merged to master/branch-2.0. Thanks for the reminder. |
…Regression ## What changes were proposed in this pull request? Add linkPredictionCol to GeneralizedLinearRegression and fix the PyDoc to generate the bullet list ## How was this patch tested? doctests & built docs locally Author: Holden Karau <holden@us.ibm.com> Closes #13106 from holdenk/SPARK-15316-add-linkPredictionCol-toGeneralizedLinearRegression. (cherry picked from commit e71cd96) Signed-off-by: Nick Pentreath <nickp@za.ibm.com>
…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>
…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.
What changes were proposed in this pull request?
Add linkPredictionCol to GeneralizedLinearRegression and fix the PyDoc to generate the bullet list
How was this patch tested?
doctests & built docs locally