Skip to content
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

about waicAbund #1

Open
QAQ0w0 opened this issue May 13, 2024 · 1 comment
Open

about waicAbund #1

QAQ0w0 opened this issue May 13, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@QAQ0w0
Copy link

QAQ0w0 commented May 13, 2024

I have noticed that WAIC calculations are slow, sometimes even exceeding the model fitting time. Is there any way to improve the calculation speed

@doserjef
Copy link
Collaborator

Hello,

Thanks for the note! As you point out, waicAbund() can be slow, particularly for N-mix and distance sampling models. It will also be slower the larger your values of abundance are. It should be much faster when working with GLMMs. The slowness is due to the need to integrate out the latent abundance values in N-mix and distance sampling models, which I decided to implement separately from the actual model fitting functions as opposed to doing that integration directly in the model-fitting functions (which would then make the call to waicAbund() much faster but the actual model-fitting function slower). There's nothing that can really be done on the user side to speed the function up at this point. Sorry about that. At some point I would like to try to dig into ways to make it a bit faster (most likely through parallelization), but that probably won't be for a while. I'll go ahead and leave this open for now.

Jeff

@doserjef doserjef added the enhancement New feature or request label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants