Skip to content

Conversation

@zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

add setFeaturesCol and setPredictionCol for OneVsRestModel

How was this patch tested?

added tests

@srowen
Copy link
Member

srowen commented Nov 29, 2016

Is this not the same as #15957 but for a different class?

@zhengruifeng
Copy link
Contributor Author

@srowen Excepet that OvR is a meta algorithm, and we need to update the behavior of base models.

@srowen
Copy link
Member

srowen commented Nov 29, 2016

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.

@zhengruifeng
Copy link
Contributor Author

I understand your opinion that we should make same update in a batch. But I just find this issue this night...

@SparkQA
Copy link

SparkQA commented Nov 29, 2016

Test build #69322 has finished for PR 16059 at commit 4a6ecab.

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

@srowen
Copy link
Member

srowen commented Dec 2, 2016

CC @yanboliang ?

@yanboliang
Copy link
Contributor

@srowen Thanks for cc me, I'm having a look now.

Copy link
Contributor

@yanboliang yanboliang left a 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!

Copy link
Contributor

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.

Copy link
Contributor

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"))

@zhengruifeng
Copy link
Contributor Author

@yanboliang Updated. Thanks for reviewing.

@SparkQA
Copy link

SparkQA commented Dec 5, 2016

Test build #69657 has finished for PR 16059 at commit b45f558.

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

@yanboliang
Copy link
Contributor

LGTM, merged into master and branch-2.1. Thanks for all.

asfgit pushed a commit that referenced this pull request Dec 5, 2016
…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]>
@asfgit asfgit closed this in bdfe7f6 Dec 5, 2016
@zhengruifeng zhengruifeng deleted the ovrm_setCol branch December 5, 2016 08:36
robert3005 pushed a commit to palantir/spark that referenced this pull request Dec 15, 2016
…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.
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…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.
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.

4 participants