-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-23091][ML] Incorrect unit test for approxQuantile #20324
Conversation
Test build #86364 has finished for PR 20324 at commit
|
Retest this please. |
Test build #86368 has finished for PR 20324 at commit
|
assert(math.abs(s2 - q2 * n) < error_single) | ||
assert(math.abs(d1 - 2 * q1 * n) < error_double) | ||
assert(math.abs(d2 - 2 * q2 * n) < error_double) | ||
assert(math.abs(single1 - q1 * n) < errorSingle) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems the intervals are inclusive, so this might be <=
instead of <
?
Test build #86390 has finished for PR 20324 at commit
|
LGTM. Thanks! 👍 |
LGTM |
Thanks! Merged to master/2.3 |
## What changes were proposed in this pull request? Narrow bound on approx quantile test to epsilon from 2*epsilon to match paper ## How was this patch tested? Existing tests. Author: Sean Owen <sowen@cloudera.com> Closes #20324 from srowen/SPARK-23091. (cherry picked from commit 396cdfb) Signed-off-by: gatorsmile <gatorsmile@gmail.com>
What changes were proposed in this pull request?
Narrow bound on approx quantile test to epsilon from 2*epsilon to match paper
How was this patch tested?
Existing tests.