Repository navigation
fixes for CRAN - #145
Merged
Merged
fixes for CRAN#145
Conversation
* Speed up model fitting; see details - With help from Claude's Opus 5.5, did some extensive benchmarking trying to figure out why tinyVAST was slower than sdmTMB for relatively large SPDE models. Here's what we came up with. - Overall, ~25-30% faster - Somewhat reduced memory too Changes: - Vectorize apply() over A-matrix on R side (easy win) - Put tau in GMRF densities - Make DATA_UPDATE(weights_i) optional; it's slower - Change nll lines from -1 * d() to -d(); trivial but strangely seems to interact with DATA_UPDATE speed-up - Models also seem to often take more nlminb iterations to converge; Could be due to parameterization of marginal SD as leading parameter rather than 'tau', but that's a more major structural change that may not be worth it. * Fix 2 unit tests * Delete extra comment * Fix #141 * Use sampled params for future with project(parm_var = TRUE) Future Rho/Gamma and Q_ss were built from the fitted parameters rather than the sampled draw, so parameter uncertainty didn't propagate into projected process errors * Add nsim to project() and build TMB objects once across samples *Much* faster * Condition future epsilon on separate time and space precisions in project() * Use report-only TMB objects in project() Faster again * Pass full unmapped parameter lists to report objects in project()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.