Skip to content

[SPARK-21241][MLlib]- Add setIntercept to StreamingLinearRegressionWi… - #18457

Closed
SoulGuedria wants to merge 2 commits into
apache:masterfrom
SoulGuedria:fix-21241
Closed

[SPARK-21241][MLlib]- Add setIntercept to StreamingLinearRegressionWi…#18457
SoulGuedria wants to merge 2 commits into
apache:masterfrom
SoulGuedria:fix-21241

Conversation

@SoulGuedria

Copy link
Copy Markdown

…thSGD in Pyspark.

What changes were proposed in this pull request?

StreamingLinearRegressionWithSGD class in PySpark is missing the setIntercept Method which offers the possibility to turn on/off the intercept value. API parity is not respected between Python and Scala. We added the setIntercept Method to StreamingLinearRegressionWithSGD class which calls setIntercept Method in LinearRegressionModel class in order to turn on/off the intercept. A big thanks to Matthieu CANEILL for his precious help in solving this issue.

How was this patch tested?

This patch was tested by running all tests with ./dev/run-tests.

…thSGD in Pyspark.
StreamingLinearRegressionWithSGD class in PySpark is missing the setIntercept Method which offers the possibility
to turn on/off the intercept value. API parity is not respected between Python and Scala. We add the setIntercept
Method to StreamingLinearRegressionWithSGD class which calls setIntercept Method in LinearRegressionModel class
in order to turn on/off the intercept. A big thanks to Matthieu CANEILL for his precious help in solving the issue.
This patch was tested by running all tests with ./dev/run-tests and by manual tests.
@holdenk

Copy link
Copy Markdown
Contributor

So we're only really doing bug fixes on the old MLlib stuff, but I guess we haven't finalized the new ML streaming stuff so I'm not sure what we want to do here. cc @MLnick .

@holdenk

Copy link
Copy Markdown
Contributor

In the meantime Jenkins OK to test.

@holdenk

Copy link
Copy Markdown
Contributor

Jenkins, test this plase.

@holdenk

Copy link
Copy Markdown
Contributor

err Jenkins test this please.

@SparkQA

Copy link
Copy Markdown

Test build #83986 has finished for PR 18457 at commit 544b4d0.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon

Copy link
Copy Markdown
Member

ping @SoulGuedria. Seems we should fix the python style.

@HyukjinKwonHyukjinKwon mentioned this pull request Jul 16, 2018
@SoulGuedria

Copy link
Copy Markdown
Author

Yes i will do it very soon :) Thanks

@holdenk

Copy link
Copy Markdown
Contributor

So MLlib is even further into maintenance mode, do we want to take improvement parity patches like these? cc @MLnick@jkbradley@HyukjinKwon ? I'm leaning towards no and focusing on ML but it's a mild lean.

@SoulGuedria

Copy link
Copy Markdown
Author

cc @HyukjinKwon can you take a look at this please. Thanks :)

@srowen

Copy link
Copy Markdown
Member

No, we should not merge this. The Model class should not let you set the intercept. This doesn't exist in Scala either. The algorithm implementation does though.

@holdenk

Copy link
Copy Markdown
Contributor

Sounds like we're not going to change this @SoulGuedria but we'd love your contributions in Spark ML where things are actively being developed.

@holdenk

Copy link
Copy Markdown
Contributor

Would you be OK closing this PR @SoulGuedria

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@srowensrowen mentioned this pull request Oct 24, 2018
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 22, 2025
Closesapache#22567Closesapache#18457Closesapache#21517Closesapache#21858Closesapache#22383Closesapache#19219Closesapache#22401Closesapache#22811Closesapache#20405Closesapache#21933Closesapache#22819 from srowen/ClosePRs.
Authored-by: Sean Owen <sean.owen@databricks.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
Sign up for freeto 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.

6 participants

@SoulGuedria@holdenk@SparkQA@HyukjinKwon@srowen@AmplabJenkins