Skip to content

Conversation

@SoulGuedria
Copy link

…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
Contributor

holdenk commented Oct 10, 2017

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
Contributor

holdenk commented Oct 10, 2017

In the meantime Jenkins OK to test.

@holdenk
Copy link
Contributor

holdenk commented Nov 18, 2017

Jenkins, test this plase.

@holdenk
Copy link
Contributor

holdenk commented Nov 18, 2017

err Jenkins test this please.

@SparkQA
Copy link

SparkQA commented Nov 18, 2017

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
Member

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

@SoulGuedria
Copy link
Author

Yes i will do it very soon :) Thanks

@holdenk
Copy link
Contributor

holdenk commented Jul 27, 2018

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
Author

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

@srowen
Copy link
Member

srowen commented Oct 6, 2018

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
Contributor

holdenk commented Oct 12, 2018

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
Contributor

holdenk commented Oct 19, 2018

Would you be OK closing this PR @SoulGuedria

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@srowen srowen mentioned this pull request Oct 24, 2018
@asfgit asfgit closed this in 65c653f Oct 25, 2018
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 22, 2025
Closes apache#22567
Closes apache#18457
Closes apache#21517
Closes apache#21858
Closes apache#22383
Closes apache#19219
Closes apache#22401
Closes apache#22811
Closes apache#20405
Closes apache#21933

Closes apache#22819 from srowen/ClosePRs.

Authored-by: Sean Owen <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
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.

6 participants