Skip to content

Conversation

@srowen
Copy link
Member

@srowen srowen commented Aug 2, 2019

What changes were proposed in this pull request?

Use log1p(x) over log(1+x) and expm1(x) over exp(x)-1 for accuracy, where possible. This should improve accuracy a tiny bit in ML-related calculations, and shouldn't hurt in any event.

How was this patch tested?

Existing tests.

@srowen srowen self-assigned this Aug 2, 2019
@SparkQA
Copy link

SparkQA commented Aug 2, 2019

Test build #108573 has finished for PR 25337 at commit 3da2508.

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

@mgaido91
Copy link
Contributor

mgaido91 commented Aug 3, 2019

LGTM

@srowen
Copy link
Member Author

srowen commented Aug 4, 2019

Merged to master

@srowen srowen closed this in c096757 Aug 4, 2019
@srowen srowen deleted the SPARK-28604 branch August 9, 2019 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants