Skip to content
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-28780][ML][2.3] deprecate LinearSVCModel.setWeightCol #25546

Conversation

zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

deprecate LinearSVCModel.setWeightCol, and make it a no-op

Why are the changes needed?

LinearSVCModel should not provide this setter, moreover, this method is wrongly defined.

Does this PR introduce any user-facing change?

no, this method is only deprecated

How was this patch tested?

existing suites

@zhengruifeng zhengruifeng changed the title [SPARK-28780][ML] deprecate LinearSVCModel.setWeightCol for 2.3.3 [SPARK-28780][ML] deprecate LinearSVCModel.setWeightCol for 2.3.4 Aug 22, 2019
@zhengruifeng
Copy link
Contributor Author

friendly ping @dongjoon-hyun @srowen

@SparkQA
Copy link

SparkQA commented Aug 22, 2019

Test build #109545 has finished for PR 25546 at commit cca5497.

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

@SparkQA
Copy link

SparkQA commented Aug 22, 2019

Test build #109546 has finished for PR 25546 at commit 3173801.

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

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-28780][ML] deprecate LinearSVCModel.setWeightCol for 2.3.4 [SPARK-28780][ML][2.3] deprecate LinearSVCModel.setWeightCol Aug 22, 2019
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be consistent with 2.4 backporting PR, @zhengruifeng .

@SparkQA
Copy link

SparkQA commented Aug 22, 2019

Test build #109559 has finished for PR 25546 at commit fe95c7e.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Merged to branch-2.3.

cc @kiszk since he is a release manager of 2.3.4.

dongjoon-hyun pushed a commit that referenced this pull request Aug 22, 2019
### What changes were proposed in this pull request?
deprecate `LinearSVCModel.setWeightCol`, and make it a no-op

### Why are the changes needed?
`LinearSVCModel` should not provide this setter, moreover, this method is wrongly defined.

### Does this PR introduce any user-facing change?
no, this method is only deprecated

### How was this patch tested?
existing suites

Closes #25546 from zhengruifeng/svc_model_deprecate_setWeight.

Authored-by: zhengruifeng <ruifengz@foxmail.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
@zhengruifeng zhengruifeng deleted the svc_model_deprecate_setWeight branch August 22, 2019 09:39
Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep that looks fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants