Github user MLnick commented on a diff in the pull request:
https://github.com/apache/spark/pull/13745#discussion_r68183934
--- Diff:
examples/src/main/java/org/apache/spark/examples/ml/JavaQuantileDiscretizerExample.java
---
@@ -54,14 +54,15 @@ public static void main(String[] args) {
});
Dataset<Row> df = spark.createDataFrame(data, schema);
-
- // Note that we compute exact quantiles here by setting
`relativeError` to 0 for
- // illustrative purposes, however in most cases the default parameter
value should suffice
+ // $example off$
+ // Output of QuantileDiscretizer for such small datasets differ wrt
underlying cores.
+ // Allocating single partition for the dataframe helps with consistent
results.
--- End diff --
Can me make this "Here we force a single partition to ensure consistent
results. Note this is not necessary for normal use cases".
It must be clear not to do this in normal usage
---
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]