Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Issue when calculating nll for compositional data #76

Closed
GiancarloMCorrea opened this issue Mar 20, 2023 · 1 comment
Closed

Issue when calculating nll for compositional data #76

GiancarloMCorrea opened this issue Mar 20, 2023 · 1 comment

Comments

@GiancarloMCorrea
Copy link

We have discussed this over email, but I wanted to make it formal.

There is an issue calculating the nll for compositional data when the predicted paa (or pal, or caal in growth branch) for a given year and fleet has a small number in it (specifically, the issue arises when a number < 1e-16 is present).

For example, for the ddirichlet function, the issue happens here, calculating log(sx) when sx = 0 so generating NaN.

Likewise, I suspect that something similar happens here, calculating p/(1-pUsed) when pUsed = 1 so generating NaN.

Not sure how to fix this; the squeeze function might help.

@timjmiller
Copy link
Owner

This issue has been resolved on devel branch.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants