Github user MLnick commented on a diff in the pull request:
https://github.com/apache/spark/pull/13176#discussion_r65774912
--- Diff:
examples/src/main/java/org/apache/spark/examples/ml/JavaQuantileDiscretizerExample.java
---
@@ -58,7 +58,11 @@ public static void main(String[] args) {
QuantileDiscretizer discretizer = new QuantileDiscretizer()
.setInputCol("hour")
.setOutputCol("result")
- .setNumBuckets(3);
+ .setNumBuckets(3)
+ .setRelativeError(0);
+ // Note that we compute exact quantiles here by setting
`relativeError` to 0 for
--- End diff --
I actually think it will be better to put the comment above the code block
since it spans two lines (for each example)
---
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]