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

Skip data validation inside brms::posterior_predict to speed up generation #82

Merged
merged 2 commits into from
Aug 10, 2023
Merged

Conversation

lunafazio
Copy link
Contributor

@lunafazio lunafazio commented Jul 4, 2023

This is a new undocumented feature in the latest version of brms (paul-buerkner/brms/pull/1521), using it should cut data generation times by around 50%

The argument is silently ignored in previous versions of brms so it shouldn't affect compatibility

@martinmodrak
Copy link
Collaborator

This is a great idea. I've edited it to do a single validation for all predictions, which should not cost much and add a bit more safety. Thanks for submitting!

@martinmodrak martinmodrak merged commit 8af581c into hyunjimoon:master Aug 10, 2023
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