Github user VinceShieh commented on a diff in the pull request:
https://github.com/apache/spark/pull/14858#discussion_r77138983
--- Diff: docs/ml-features.md ---
@@ -1102,7 +1102,8 @@ for more details on the API.
## QuantileDiscretizer
`QuantileDiscretizer` takes a column with continuous features and outputs
a column with binned
-categorical features. The number of bins is set by the `numBuckets`
parameter.
+categorical features. The number of bins is set by the `numBuckets`
parameter, but it is
--- End diff --
consider situation, when a high proportion of duplicated data and/or NaN
exist in a data sample, the exact number of buckets is hard to get, it could be
less than/equal to/ more than 'numBuckets'. what we can be sure is that, the
NaN value if existed will be grouped in the last bucket.
---
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]