-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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] Delete the incorrect setWeightCol method in LinearSVCModel #25510
[SPARK-28780][ML] Delete the incorrect setWeightCol method in LinearSVCModel #25510
Conversation
Test build #109400 has finished for PR 25510 at commit
|
Test build #109403 has finished for PR 25510 at commit
|
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.
Agree, that looks like a copy-paste error. I'm tempted to say we should make it a no-op in 2.x as well, just in case somebody is calling it and accidentally changing the threshold instead. However they'd already be hitting an error if so. We can probably just remove for 3.0.
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.
Thank you, @zhengruifeng and @srowen .
+1, LGTM for 3.0
.
Since this API is removed, we need to follow a deprecation process in 2.4.4
and 2.3.4
. (cc @kiszk for 2.3.4).
- Shall we mark a deprecation annotation on
2.4.4
and2.3.4
? - Make the code
no-op
and show warning. - Document it in the ML migration guide?
cc @dbtsai |
That wouldn't hurt to 'back port' a different change that deprecates it and makes it emit a warning only. We can get it into 2.4.4, 2.3.4 indeed. I'm not super concerned about it because a call to |
@srowen @dongjoon-hyun I am OK to make another prs for 2.3.4 & 2.4.4. |
Merged to master |
Yep. Please make two PR for them, @zhengruifeng . Thanks. |
What changes were proposed in this pull request?
Delete the incorrect method
def setWeightCol(value: Double): this.type = set(threshold, value)
inLinearSVCModel
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?
yes, a public method is removed
How was this patch tested?
existing suites