-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-18625][ML] OneVsRestModel should support setFeaturesCol and setPredictionCol #16059
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
Conversation
|
Is this not the same as #15957 but for a different class? |
|
@srowen Excepet that OvR is a meta algorithm, and we need to update the behavior of base models. |
|
OK, should it not have been added in the other PR? I want to push back on adding logical changes piecemeal. I understand sometimes it only becomes clear later that further changes are needed, but if it happens regularly or seems avoidable it becomes a problem. |
|
I understand your opinion that we should make same update in a batch. But I just find this issue this night... |
|
Test build #69322 has finished for PR 16059 at commit
|
|
CC @yanboliang ? |
|
@srowen Thanks for cc me, I'm having a look now. |
yanboliang
left a comment
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.
Looks good overall, except some minor comments. Thanks!
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.
It's not necessary to setPredictionCol here, since the prediction column of each base binary classifier is ignored during the transformation. The predictionCol of OneVsRestModel was set at L198.
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.
Minor: assert(outputFields === Set("y", "fea", "pred"))
4a6ecab to
61dcd51
Compare
|
@yanboliang Updated. Thanks for reviewing. |
|
Test build #69657 has finished for PR 16059 at commit
|
|
LGTM, merged into master and branch-2.1. Thanks for all. |
…tPredictionCol ## What changes were proposed in this pull request? add `setFeaturesCol` and `setPredictionCol` for `OneVsRestModel` ## How was this patch tested? added tests Author: Zheng RuiFeng <[email protected]> Closes #16059 from zhengruifeng/ovrm_setCol. (cherry picked from commit bdfe7f6) Signed-off-by: Yanbo Liang <[email protected]>
…tPredictionCol ## What changes were proposed in this pull request? add `setFeaturesCol` and `setPredictionCol` for `OneVsRestModel` ## How was this patch tested? added tests Author: Zheng RuiFeng <[email protected]> Closes apache#16059 from zhengruifeng/ovrm_setCol.
…tPredictionCol ## What changes were proposed in this pull request? add `setFeaturesCol` and `setPredictionCol` for `OneVsRestModel` ## How was this patch tested? added tests Author: Zheng RuiFeng <[email protected]> Closes apache#16059 from zhengruifeng/ovrm_setCol.
What changes were proposed in this pull request?
add
setFeaturesColandsetPredictionColforOneVsRestModelHow was this patch tested?
added tests