You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by hujy <gi...@git.apache.org> on 2016/04/14 05:54:17 UTC

[GitHub] spark pull request: [SPARK-14623][ML]add label binarizer

GitHub user hujy opened a pull request:

    https://github.com/apache/spark/pull/12380

    [SPARK-14623][ML]add label binarizer

    ## What changes were proposed in this pull request?
    SPARK-14623
    LabelBinarizer can make it possible to transformation a fixed set of class labels to binaries. It is to extend regression and binary classification algorithms to the multi-class classification case is to use one-vs-all scheme.
    
    ## How was this patch tested?
    LabelBinarizerSuiter unit tests (some existing tests will change or even be removed in this PR)
    Input:
    "yellow,green,red,green,0"
    The labels: "0, green, red, yellow"
    Output:
    0, 0, 0, 0, 1,  => 0's index in input is 5 and set 1 here
    0, 1, 0, 1, 0, 
    0, 0, 1, 0, 0, 
    1, 0, 0, 0, 0
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hujy/spark lb

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12380.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12380
    
----
commit 0aa27fc977e33fb1404431e4d1b761f0192ff4c3
Author: HuJiayin <ji...@intel.com>
Date:   2016-04-14T03:34:04Z

    [SPARK-14623][ML]add label binarizer

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #12380: [SPARK-14623][ML]add label binarizer

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the issue:

    https://github.com/apache/spark/pull/12380
  
    Isn't this just one-hot encoding? Spark has had this for a long time.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #12380: [SPARK-14623][ML]add label binarizer

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/12380
  
    Can one of the admins verify this patch?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #12380: [SPARK-14623][ML]add label binarizer

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/12380


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #12380: [SPARK-14623][ML]add label binarizer

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the issue:

    https://github.com/apache/spark/pull/12380
  
    Let's close this


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14623][ML]add label binarizer

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12380#issuecomment-209749686
  
    Can one of the admins verify this patch?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14623][ML]add label binarizer

Posted by hujy <gi...@git.apache.org>.
Github user hujy commented on the pull request:

    https://github.com/apache/spark/pull/12380#issuecomment-218922740
  
    ok with test


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org