Skip to content

Conversation

@holdenk
Copy link
Contributor

@holdenk holdenk commented May 13, 2016

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

@SparkQA
Copy link

SparkQA commented May 13, 2016

Test build #58592 has finished for PR 13106 at commit f062750.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

... (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())
Copy link
Contributor

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

Copy link
Contributor Author

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.

@MLnick
Copy link
Contributor

MLnick commented May 16, 2016

A minor comment, otherwise LGTM.

@SparkQA
Copy link

SparkQA commented May 16, 2016

Test build #58630 has finished for PR 13106 at commit d4cb4d7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@yanboliang
Copy link
Contributor

LGTM

@holdenk
Copy link
Contributor Author

holdenk commented May 19, 2016

Shall we merge then?

@MLnick
Copy link
Contributor

MLnick commented May 19, 2016

Yup - merged to master/branch-2.0. Thanks for the reminder.

asfgit pushed a commit that referenced this pull request May 19, 2016
…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>
@asfgit asfgit closed this in e71cd96 May 19, 2016
asfgit pushed a commit that referenced this pull request May 20, 2016
…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>
asfgit pushed a commit that referenced this pull request May 20, 2016
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants