Skip to content

Conversation

@thunterdb
Copy link
Contributor

What changes were proposed in this pull request?

This PR build on #14976 and fixes a correctness bug that would cause the wrong quantile to be returned for small target errors.

How was this patch tested?

This PR adds 8 unit tests that were failing without the fix.

@thunterdb
Copy link
Contributor Author

cc @clockfly

@thunterdb thunterdb changed the title [ML][SPARK-17439] Fixing compression issues with approximate quantiles and adding more tests [SQL][SPARK-17439] Fixing compression issues with approximate quantiles and adding more tests Sep 7, 2016
// If necessary, add the minimum element:
res.prepend(currentSamples.head)
val currHead = currentSamples.head
if (currHead.value < head.value) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the fix

@SparkQA
Copy link

SparkQA commented Sep 7, 2016

Test build #65056 has finished for PR 15002 at commit 406943c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Sep 9, 2016

This seems fine to me, and would also fix SPARK-17306. You can note that in the title. I'm closing #14976

@srowen
Copy link
Member

srowen commented Sep 11, 2016

Merged to master and to 2.0 with some conflict resolution

asfgit pushed a commit that referenced this pull request Sep 11, 2016
…es and adding more tests

This PR build on #14976 and fixes a correctness bug that would cause the wrong quantile to be returned for small target errors.

This PR adds 8 unit tests that were failing without the fix.

Author: Timothy Hunter <timhunter@databricks.com>
Author: Sean Owen <sowen@cloudera.com>

Closes #15002 from thunterdb/ml-1783.

(cherry picked from commit 180796e)
Signed-off-by: Sean Owen <sowen@cloudera.com>
@thunterdb
Copy link
Contributor Author

Thank you @srowen

wgtmac pushed a commit to wgtmac/spark that referenced this pull request Sep 19, 2016
…es and adding more tests

## What changes were proposed in this pull request?

This PR build on apache#14976 and fixes a correctness bug that would cause the wrong quantile to be returned for small target errors.

## How was this patch tested?

This PR adds 8 unit tests that were failing without the fix.

Author: Timothy Hunter <timhunter@databricks.com>
Author: Sean Owen <sowen@cloudera.com>

Closes apache#15002 from thunterdb/ml-1783.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants