GitHub user mpjlu opened a pull request:

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

    [MLLIB]Add setBins for BinaryClassificationMetrics

    ## What changes were proposed in this pull request?
    
    Add a setBins method for BinaryClassificationMetrics.
    BinaryClassificationMetrics is a class in mllib/Evaluation.  numBins is a 
key attribute of it.   If numBins greater than 0, then the curves (ROC curve, 
PR curve) computed internally will be down-sampled to this many "bins". 
    It is useful to let the user set the numBins. 
    
    
    ## How was this patch tested?
    ut cases were changed to test this PR.
    
    (If this patch involves UI changes, please attach a screenshot; otherwise, 
remove this)
    


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

    $ git pull https://github.com/mpjlu/spark addSetNumBins

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

    https://github.com/apache/spark/pull/15058.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 #15058
    
----
commit b28ac7499b62282ac3777d7be21a1ed0dc16a78b
Author: Peng <peng.m...@intel.com>
Date:   2016-09-12T08:02:31Z

    add setBins

commit 1f4258e262314cd6781a6d6feca1940c4ea05457
Author: Peng <peng.m...@intel.com>
Date:   2016-09-12T09:41:59Z

    Merge remote-tracking branch 'origin/master' into addSetNumBins

commit a70bf454dfd3838780a8d040858e53d3ad870966
Author: Peng <peng.m...@intel.com>
Date:   2016-09-12T10:10:30Z

    change the comments style

commit c17bf4e768be614c806bbd913096538f89b380e5
Author: Peng <peng.m...@intel.com>
Date:   2016-09-12T10:15:51Z

    minor change

commit d06b2b1d3f0d214a37da8d456e8e585b06fe5d9b
Author: Peng <peng.m...@intel.com>
Date:   2016-09-12T10:20:50Z

    change the comments

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to