GitHub user oliverpierson opened a pull request:
https://github.com/apache/spark/pull/11553
[SPARK-13600] [MLlib] [WIP] Incorrect number of buckets in
QuantileDiscretizer
## What changes were proposed in this pull request?
QuantileDiscretizer can return an unexpected number of buckets in certain
cases. This PR proposes to fix this issue and also refactor
QuantileDiscretizer to use approxQuantiles from DataFrame stats functions.
## How was this patch tested?
QuantileDiscretizerSuite unit tests (some existing tests will change or
even be removed in this PR)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/oliverpierson/spark SPARK-13600
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11553.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 #11553
----
commit 7ff2da10141378cb9511672964f85615f937484d
Author: Oliver Pierson <[email protected]>
Date: 2016-03-07T03:07:20Z
refactored QuantileDiscretizer to use dataframe stats
----
---
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]