GitHub user mengxr opened a pull request:

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

    [SPARK-6761][SQL][ML] Fixes to API and documentation of approximate 
quantiles

    ## What changes were proposed in this pull request?
    
    This continues  @thunterdb 's work on `approxQuantile` API. It changes the 
signature of `approxQuantile` from `(col: String, quantile: Double, epsilon: 
Double): Double`  to `(col: String, probabilities: Array[Double], 
relativeError: Double): Array[Double]` and update API doc. It also improves the 
error message in tests and simplifies the merge algorithm for summaries.
    
    ## How was the this patch tested?
    
    Use the same unit tests as before.
    
    Closes #11325


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

    $ git pull https://github.com/mengxr/spark SPARK-6761

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

    https://github.com/apache/spark/pull/11332.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 #11332
    
----
commit a77b7e678ae266210bfaf8ca9b88fc3d2dd54d0d
Author: Timothy Hunter <[email protected]>
Date:   2016-02-23T17:32:18Z

    SPARK-6761 Additional cleanups to address comments, there is an error 
somewhere

commit dbf87f1da765eed21880cda71a4b5ec62bee3e4d
Author: Timothy Hunter <[email protected]>
Date:   2016-02-23T17:50:13Z

    fixed test

commit 9243278c00a37aea09cd08d4d1647a750baf9e07
Author: Timothy Hunter <[email protected]>
Date:   2016-02-23T17:56:50Z

    typo

commit 35b06c686a06c6d7887a63915a575198492caad4
Author: Xiangrui Meng <[email protected]>
Date:   2016-02-23T21:35:12Z

    update approxQuantile API and doc

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to