docs: network-hhmodel example: Separate contact from disease progression#847
docs: network-hhmodel example: Separate contact from disease progression#847
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
|
Awesome! I think we've all felt the need for someone with modeling expertise to take a close look at our examples for quite some time now, so it's great that you're doing this. If you want to look over any other of the examples—or even add new ones that you think are conspicuously missing—definitely feel free to! But obviously don't feel obligated. I'll look into the failing lints and get back to you. Sometimes they feel like a moving target... |
|
I think it's not failing because of the lints. I think it's failing because the example never terminates: |
Benchmark ResultsHyperfine
CriterionRegressions (slower)
Improvements (faster)
Unchanged / inconclusive (CI crosses 0%)
|
Benchmark ResultsHyperfine
CriterionRegressions (slower)
Improvements (faster)
Unchanged / inconclusive (CI crosses 0%)
|
|
@bbbruce -- Robert asked for another pair of eyes on this example. Would you take a look? I could do a more full-blown analysis to check for correctness if we consider the prior state to be a gold standard. |
|
@bbbruce I reworked a little bit as per our discussion:
|
Benchmark ResultsHyperfine
CriterionRegressions (slower)
Improvements (faster)
Unchanged / inconclusive (CI crosses 0%)
|
seir.rslooks for the infected people, then asksnetwork.rswho they contact viaget_contacts(). This is a nicer separation of concerns.get_contacts()needs adurationargument, that says what contacts will happen over what time period.I'm having some trouble with getting the
cargo +nightly fmtcheck to stabilize