Skip to content

Conversation

@facaiy
Copy link
Contributor

@facaiy facaiy commented Jul 28, 2017

The PR is related to #18554, and is modified for branch 2.0.

What changes were proposed in this pull request?

add setWeightCol method for OneVsRest.

weightCol is ignored if classifier doesn't inherit HasWeightCol trait.

How was this patch tested?

  • add an unit test.

facaiy referenced this pull request Jul 28, 2017
## What changes were proposed in this pull request?

add `setWeightCol` method for OneVsRest.

`weightCol` is ignored if classifier doesn't inherit HasWeightCol trait.

## How was this patch tested?

+ [x] add an unit test.

Author: Yan Facai (颜发才) <[email protected]>

Closes #18554 from facaiy/BUG/oneVsRest_missing_weightCol.

(cherry picked from commit a5a3189)
Signed-off-by: Yanbo Liang <[email protected]>
facaiy added 2 commits July 29, 2017 06:53
## What changes were proposed in this pull request?

add `setWeightCol` method for OneVsRest.

`weightCol` is ignored if classifier doesn't inherit HasWeightCol trait.

## How was this patch tested?

+ [x] add an unit test.

Author: Yan Facai (颜发才) <[email protected]>

Closes apache#18554 from facaiy/BUG/oneVsRest_missing_weightCol.

(cherry picked from commit a5a3189)
Signed-off-by: Yanbo Liang <[email protected]>
@facaiy facaiy force-pushed the BUG/branch-2.0_OneVsRest_support_setWeightCol branch from 0c60c28 to e695889 Compare July 28, 2017 22:55
@yanboliang
Copy link
Contributor

Jenkins, test this please.

@yanboliang
Copy link
Contributor

@srowen Could you help to trigger this job? Thanks.

@facaiy
Copy link
Contributor Author

facaiy commented Jul 31, 2017

Thanks, @yanboliang . Could you give a hand, @srowen ?

@SparkQA
Copy link

SparkQA commented Jul 31, 2017

Test build #3865 has finished for PR 18764 at commit e695889.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@facaiy
Copy link
Contributor Author

facaiy commented Aug 1, 2017

Jenkins, test this please.

@facaiy
Copy link
Contributor Author

facaiy commented Aug 4, 2017

Test failures in pyspark.ml.tests with python2.6, but I don't have the environment.

@yanboliang
Copy link
Contributor

yanboliang commented Aug 4, 2017

@facaiy No worries, I will take a look.

@facaiy
Copy link
Contributor Author

facaiy commented Aug 4, 2017

@yanboliang Thanks, yanbo. I am not familar with python 2.6, which is too outdated.

weightCol = self.getWeightCol()
else:
warnings.warn("weightCol is ignored, "
"as it is not supported by {} now.".format(
Copy link
Contributor

Choose a reason for hiding this comment

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

See my comment here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you very much for help, @yanboliang !

@facaiy
Copy link
Contributor Author

facaiy commented Aug 7, 2017

@SparkQA Take a test, please.

@yanboliang
Copy link
Contributor

ok to test

@yanboliang
Copy link
Contributor

Jenkins, test this please.

@gatorsmile
Copy link
Member

ok to test

@SparkQA
Copy link

SparkQA commented Aug 7, 2017

Test build #80344 has finished for PR 18764 at commit 371887d.

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

@facaiy
Copy link
Contributor Author

facaiy commented Aug 7, 2017

Thanks, @yanboliang @gatorsmile

@yanboliang
Copy link
Contributor

Merged into branch-2.0. Thanks @facaiy @gatorsmile

asfgit pushed a commit that referenced this pull request Aug 8, 2017
The PR is related to #18554, and is modified for branch 2.0.

## What changes were proposed in this pull request?

add `setWeightCol` method for OneVsRest.

`weightCol` is ignored if classifier doesn't inherit HasWeightCol trait.

## How was this patch tested?

+ [x] add an unit test.

Author: Yan Facai (颜发才) <[email protected]>

Closes #18764 from facaiy/BUG/branch-2.0_OneVsRest_support_setWeightCol.
@yanboliang
Copy link
Contributor

It seems github can't close this PR automatically. @facaiy Please feel free to close it manually. Thanks.

@facaiy
Copy link
Contributor Author

facaiy commented Aug 8, 2017

Sure, thanks, @yanboliang !

@facaiy facaiy closed this Aug 8, 2017
@facaiy facaiy deleted the BUG/branch-2.0_OneVsRest_support_setWeightCol branch August 8, 2017 08:08
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