Uh oh!
There was an error while loading. Please reload this page.
[SPARK-21306][ML] For branch 2.0, OneVsRest should support setWeightCol - #18764
[SPARK-21306][ML] For branch 2.0, OneVsRest should support setWeightCol#18764facaiy wants to merge 5 commits into
Conversation
## 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 (颜发才) <facai.yan@gmail.com> Closes#18554 from facaiy/BUG/oneVsRest_missing_weightCol. (cherry picked from commit a5a3189) Signed-off-by: Yanbo Liang <ybliang8@gmail.com>
## 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 (颜发才) <facai.yan@gmail.com> Closesapache#18554 from facaiy/BUG/oneVsRest_missing_weightCol. (cherry picked from commit a5a3189) Signed-off-by: Yanbo Liang <ybliang8@gmail.com>
0c60c28 to
e695889Compareyanboliang
commented
Jul 31, 2017
Jenkins, test this please. |
yanboliang
commented
Jul 31, 2017
@srowen Could you help to trigger this job? Thanks. |
facaiy
commented
Jul 31, 2017
Thanks, @yanboliang . Could you give a hand, @srowen ? |
SparkQA
commented
Jul 31, 2017
Test build #3865 has finished for PR 18764 at commit
|
facaiy
commented
Aug 1, 2017
Jenkins, test this please. |
facaiy
commented
Aug 4, 2017
Test failures in pyspark.ml.tests with python2.6, but I don't have the environment. |
@facaiy No worries, I will take a look. |
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( |
There was a problem hiding this comment.
Thank you very much for help, @yanboliang !
facaiy
commented
Aug 7, 2017
@SparkQA Take a test, please. |
yanboliang
commented
Aug 7, 2017
ok to test |
yanboliang
commented
Aug 7, 2017
Jenkins, test this please. |
gatorsmile
commented
Aug 7, 2017
ok to test |
SparkQA
commented
Aug 7, 2017
Test build #80344 has finished for PR 18764 at commit
|
facaiy
commented
Aug 7, 2017
Thanks, @yanboliang@gatorsmile |
yanboliang
commented
Aug 8, 2017
Merged into branch-2.0. Thanks @facaiy@gatorsmile |
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 (颜发才) <facai.yan@gmail.com> Closes#18764 from facaiy/BUG/branch-2.0_OneVsRest_support_setWeightCol.
yanboliang
commented
Aug 8, 2017
It seems github can't close this PR automatically. @facaiy Please feel free to close it manually. Thanks. |
facaiy
commented
Aug 8, 2017
Sure, thanks, @yanboliang ! |
The PR is related to #18554, and is modified for branch 2.0.
What changes were proposed in this pull request?
add
setWeightColmethod for OneVsRest.weightColis ignored if classifier doesn't inherit HasWeightCol trait.How was this patch tested?