-
Notifications
You must be signed in to change notification settings - Fork 5
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
Issue #362: Reduce dependence on cmdstanr
#424
Conversation
Fitting a model with |
This comment was marked as outdated.
This comment was marked as outdated.
@seabbs to look at then discuss. |
2db875e
to
03f4971
Compare
@athowes as you can tell from the commits I have started to look at this will circle back once I have made more progress |
@athowes this is ready for review. It completes your work removing the dependency on It also updates the tests to use fits from the setup script, and updates most of the vignettes to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Main larger thing is can we delete the saving of the data file seeing as it's not used now?
With regard to this change, perhaps it's going to slow down development sometimes (as I rerun the test preparation script) but I'm OK with it given the benefits.
I'm also confused why we are getting rid of tests of the model compiling.
because the test suite is super super slow and we don't need them as we are checking the syntax and we know we can compile models more generally in the fitting |
I think maybe if we don't need it for examples (which are currently quite missing) probably a new issue though.
I think its the same or fewer number of model fits so the test suite should actually be faster |
Co-authored-by: Adam Howes <[email protected]>
Co-authored-by: Adam Howes <[email protected]>
Co-authored-by: Adam Howes <[email protected]>
f8f4611
to
c14152d
Compare
* Switch default to rstan rather than cmdstanr * Import BH * Use match.arg as suggested by @jamesmbaazam * Add RcppEigen to Suggests * Change backend to cmdstanr in approximate inference vignette * Use cmdstanr for Laplace test * Remove erroneous output_dir arg * drop backend entirely as an arg * remove cmdstanr using vignettes from cran check * update cmdstan install instructions * update epidist docs * update approx-inference vignette to make it clear we are using cmdstanr and not rstan * switch ebola vignette over to cmdstanr * update test fit returns * update more fit uses in test * fix helper function * bring silence to laplace * fix epidist * get tests passing * fix CRAN check * use fewer cores * drop additional deps * drop duplicate prepping * try and use linking with instead of imports * Update vignettes/epidist.Rmd Co-authored-by: Adam Howes <[email protected]> * Update tests/testthat/test-int-latent_individual.R Co-authored-by: Adam Howes <[email protected]> * Update inst/generate_examples.R Co-authored-by: Adam Howes <[email protected]> --------- Co-authored-by: Sam <[email protected]> Former-commit-id: 729e385075e181a2c7d9a716e776ac504d08a658 [formerly 70e78c0742b69012eb57ad58c5d92e39d25c45ad] Former-commit-id: 38ff128853245a2fba7acdbe49951aabc476647e
* Switch default to rstan rather than cmdstanr * Import BH * Use match.arg as suggested by @jamesmbaazam * Add RcppEigen to Suggests * Change backend to cmdstanr in approximate inference vignette * Use cmdstanr for Laplace test * Remove erroneous output_dir arg * drop backend entirely as an arg * remove cmdstanr using vignettes from cran check * update cmdstan install instructions * update epidist docs * update approx-inference vignette to make it clear we are using cmdstanr and not rstan * switch ebola vignette over to cmdstanr * update test fit returns * update more fit uses in test * fix helper function * bring silence to laplace * fix epidist * get tests passing * fix CRAN check * use fewer cores * drop additional deps * drop duplicate prepping * try and use linking with instead of imports * Update vignettes/epidist.Rmd Co-authored-by: Adam Howes <[email protected]> * Update tests/testthat/test-int-latent_individual.R Co-authored-by: Adam Howes <[email protected]> * Update inst/generate_examples.R Co-authored-by: Adam Howes <[email protected]> --------- Co-authored-by: Sam <[email protected]> Former-commit-id: 4afb056 Former-commit-id: 764790be7d4ec49bce89e458a96556e91a472cb2
* Switch default to rstan rather than cmdstanr * Import BH * Use match.arg as suggested by @jamesmbaazam * Add RcppEigen to Suggests * Change backend to cmdstanr in approximate inference vignette * Use cmdstanr for Laplace test * Remove erroneous output_dir arg * drop backend entirely as an arg * remove cmdstanr using vignettes from cran check * update cmdstan install instructions * update epidist docs * update approx-inference vignette to make it clear we are using cmdstanr and not rstan * switch ebola vignette over to cmdstanr * update test fit returns * update more fit uses in test * fix helper function * bring silence to laplace * fix epidist * get tests passing * fix CRAN check * use fewer cores * drop additional deps * drop duplicate prepping * try and use linking with instead of imports * Update vignettes/epidist.Rmd Co-authored-by: Adam Howes <[email protected]> * Update tests/testthat/test-int-latent_individual.R Co-authored-by: Adam Howes <[email protected]> * Update inst/generate_examples.R Co-authored-by: Adam Howes <[email protected]> --------- Co-authored-by: Sam <[email protected]> Former-commit-id: 4afb056 Former-commit-id: 764790be7d4ec49bce89e458a96556e91a472cb2
* Switch default to rstan rather than cmdstanr * Import BH * Use match.arg as suggested by @jamesmbaazam * Add RcppEigen to Suggests * Change backend to cmdstanr in approximate inference vignette * Use cmdstanr for Laplace test * Remove erroneous output_dir arg * drop backend entirely as an arg * remove cmdstanr using vignettes from cran check * update cmdstan install instructions * update epidist docs * update approx-inference vignette to make it clear we are using cmdstanr and not rstan * switch ebola vignette over to cmdstanr * update test fit returns * update more fit uses in test * fix helper function * bring silence to laplace * fix epidist * get tests passing * fix CRAN check * use fewer cores * drop additional deps * drop duplicate prepping * try and use linking with instead of imports * Update vignettes/epidist.Rmd Co-authored-by: Adam Howes <[email protected]> * Update tests/testthat/test-int-latent_individual.R Co-authored-by: Adam Howes <[email protected]> * Update inst/generate_examples.R Co-authored-by: Adam Howes <[email protected]> --------- Co-authored-by: Sam <[email protected]> Former-commit-id: 4afb056 Former-commit-id: 764790be7d4ec49bce89e458a96556e91a472cb2
* Switch default to rstan rather than cmdstanr * Import BH * Use match.arg as suggested by @jamesmbaazam * Add RcppEigen to Suggests * Change backend to cmdstanr in approximate inference vignette * Use cmdstanr for Laplace test * Remove erroneous output_dir arg * drop backend entirely as an arg * remove cmdstanr using vignettes from cran check * update cmdstan install instructions * update epidist docs * update approx-inference vignette to make it clear we are using cmdstanr and not rstan * switch ebola vignette over to cmdstanr * update test fit returns * update more fit uses in test * fix helper function * bring silence to laplace * fix epidist * get tests passing * fix CRAN check * use fewer cores * drop additional deps * drop duplicate prepping * try and use linking with instead of imports * Update vignettes/epidist.Rmd Co-authored-by: Adam Howes <[email protected]> * Update tests/testthat/test-int-latent_individual.R Co-authored-by: Adam Howes <[email protected]> * Update inst/generate_examples.R Co-authored-by: Adam Howes <[email protected]> --------- Co-authored-by: Sam <[email protected]> Former-commit-id: 729e385075e181a2c7d9a716e776ac504d08a658 [formerly 70e78c0742b69012eb57ad58c5d92e39d25c45ad] Former-commit-id: 38ff128853245a2fba7acdbe49951aabc476647e
* Switch default to rstan rather than cmdstanr * Import BH * Use match.arg as suggested by @jamesmbaazam * Add RcppEigen to Suggests * Change backend to cmdstanr in approximate inference vignette * Use cmdstanr for Laplace test * Remove erroneous output_dir arg * drop backend entirely as an arg * remove cmdstanr using vignettes from cran check * update cmdstan install instructions * update epidist docs * update approx-inference vignette to make it clear we are using cmdstanr and not rstan * switch ebola vignette over to cmdstanr * update test fit returns * update more fit uses in test * fix helper function * bring silence to laplace * fix epidist * get tests passing * fix CRAN check * use fewer cores * drop additional deps * drop duplicate prepping * try and use linking with instead of imports * Update vignettes/epidist.Rmd Co-authored-by: Adam Howes <[email protected]> * Update tests/testthat/test-int-latent_individual.R Co-authored-by: Adam Howes <[email protected]> * Update inst/generate_examples.R Co-authored-by: Adam Howes <[email protected]> --------- Co-authored-by: Sam <[email protected]> Former-commit-id: 729e385075e181a2c7d9a716e776ac504d08a658 [formerly 70e78c0742b69012eb57ad58c5d92e39d25c45ad] Former-commit-id: 38ff128853245a2fba7acdbe49951aabc476647e Former-commit-id: 9fc612e
* Switch default to rstan rather than cmdstanr * Import BH * Use match.arg as suggested by @jamesmbaazam * Add RcppEigen to Suggests * Change backend to cmdstanr in approximate inference vignette * Use cmdstanr for Laplace test * Remove erroneous output_dir arg * drop backend entirely as an arg * remove cmdstanr using vignettes from cran check * update cmdstan install instructions * update epidist docs * update approx-inference vignette to make it clear we are using cmdstanr and not rstan * switch ebola vignette over to cmdstanr * update test fit returns * update more fit uses in test * fix helper function * bring silence to laplace * fix epidist * get tests passing * fix CRAN check * use fewer cores * drop additional deps * drop duplicate prepping * try and use linking with instead of imports * Update vignettes/epidist.Rmd Co-authored-by: Adam Howes <[email protected]> * Update tests/testthat/test-int-latent_individual.R Co-authored-by: Adam Howes <[email protected]> * Update inst/generate_examples.R Co-authored-by: Adam Howes <[email protected]> --------- Co-authored-by: Sam <[email protected]> Former-commit-id: 4afb056 Former-commit-id: 764790be7d4ec49bce89e458a96556e91a472cb2 Former-commit-id: 0de625c0e819bd977b6691ec528c385cbbd34615 [formerly 32c2660] Former-commit-id: 67be8349533318a2c020276788ccdfe2dd84e106
* Switch default to rstan rather than cmdstanr * Import BH * Use match.arg as suggested by @jamesmbaazam * Add RcppEigen to Suggests * Change backend to cmdstanr in approximate inference vignette * Use cmdstanr for Laplace test * Remove erroneous output_dir arg * drop backend entirely as an arg * remove cmdstanr using vignettes from cran check * update cmdstan install instructions * update epidist docs * update approx-inference vignette to make it clear we are using cmdstanr and not rstan * switch ebola vignette over to cmdstanr * update test fit returns * update more fit uses in test * fix helper function * bring silence to laplace * fix epidist * get tests passing * fix CRAN check * use fewer cores * drop additional deps * drop duplicate prepping * try and use linking with instead of imports * Update vignettes/epidist.Rmd Co-authored-by: Adam Howes <[email protected]> * Update tests/testthat/test-int-latent_individual.R Co-authored-by: Adam Howes <[email protected]> * Update inst/generate_examples.R Co-authored-by: Adam Howes <[email protected]> --------- Co-authored-by: Sam <[email protected]> Former-commit-id: 4afb056 Former-commit-id: 764790be7d4ec49bce89e458a96556e91a472cb2 Former-commit-id: 0de625c0e819bd977b6691ec528c385cbbd34615 [formerly 32c2660] Former-commit-id: 67be8349533318a2c020276788ccdfe2dd84e106
Description
This draft PR explores #362.
Checklist