Skip to content

Add iszero(x) branches to xlogy and xlog1py#57

Merged
devmotion merged 11 commits intoJuliaStats:masterfrom
simsurace:xlogy_etc
Aug 23, 2022
Merged

Add iszero(x) branches to xlogy and xlog1py#57
devmotion merged 11 commits intoJuliaStats:masterfrom
simsurace:xlogy_etc

Conversation

@simsurace
Copy link
Contributor

@simsurace simsurace commented Aug 19, 2022

Apologies for the new PR, but I accidentally deleted my remote branch. This replaces #54

Copy link
Member

@devmotion devmotion left a comment

Choose a reason for hiding this comment

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

Hmm it seems there are still some test failures.

@simsurace
Copy link
Contributor Author

Hmm I saw them pass locally. Will get back to this...

simsurace and others added 4 commits August 22, 2022 10:51
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
@simsurace
Copy link
Contributor Author

I needed to modify the frule in order to make this pass. Since the derivative wrt. x is infinite, the finite difference tests would fail. I therefore replaced the test_frule and test_rrule by manual tests of just the y derivative.

@simsurace
Copy link
Contributor Author

I modified the wrong frule, apologies.

@simsurace simsurace requested a review from devmotion August 22, 2022 09:37
@simsurace simsurace requested a review from devmotion August 23, 2022 08:22
Copy link
Member

@devmotion devmotion left a comment

Choose a reason for hiding this comment

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

OK, let's get this in! It's definitely an improvement and tests pass finally 🙂 We can always add more branches later if needed.

@devmotion devmotion merged commit c90f261 into JuliaStats:master Aug 23, 2022
@simsurace simsurace deleted the xlogy_etc branch August 23, 2022 09:21
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.

2 participants