Comments (3)
Thanks for the note.
The documentation of serial
states (though perhaps not clearly enough) that setting it implies tree=TRUE
:
https://github.com/sbfnk/bpmodels/blob/466896dd57c5dd51ef9cbe7c0cff4cdd41bbfda4/man/chain_sim.Rd#L26
As for the point about memory, some sort of ancestor tracking is required with serial=TRUE
, I think, to calculate the infection times of new offspring as they depend on the infection times of the ancestor. There might be a way to save memory (which would be a great thing) by only storing the last generation, but this would require a bit of a rewrite of how this is handled in chain_sim
- happy to consider a pull request if you have the capacity to have a go at this.
On a related note, the rbind
ing of data frames in the same function is probably horrendously inefficient and worth looking at sometime in the future.
from bpmodels.
from bpmodels.
There's nothing as such that prevents this from going on CRAN as is - but all improvements would of course be most welcome!
from bpmodels.
Related Issues (20)
- Update README to use explicit argument matching
- Fix reproduction number not rendering correctly in "Get Started" vignette
- Explain why we set seed
- Reword part about offspring distribution in Get Started vignette
- Push ?chain_ll to inline in "Get Started" vignette
- Revise vignette: refer to functions in inline text by suffixing with `()`
- Crosscheck correctness of figure 1 in covid-19 modelling vignette
- Provide a default value for `obs_sim` in `chain_ll()` HOT 1
- Add input checking to the borel functions
- Use the @noRd tag to prevent generating documentation files of internal functions
- Remove `find_function_name()` from codebase
- Improve wording of `pop` argument in `chain_sim_susc()`
- Justify why `chain_threshold` is set to `1000` in covid-19 modelling vignette HOT 1
- Add GHA for syncing the `CITATION.cff` file with the DESCRIPTION and CITATION file
- Run styler HOT 1
- Move theory vignette to Literature navbar on website HOT 5
- Clarify documentation of `offspring_ll()`
- Add package reviewers
- Tests for statistical correctness in random samplers
- Transfer {bpmodels} to epiforecasts group after {epichains} release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpmodels.