Comments (6)
I dont know how your model looks but you do have to use our variable names if you want to use these high level plotting functions. As far as I remember the pymc3 name for the new cases has to be "new_cases"
otherwise the timeseries_overview plotting will not work.
You could also change "new_cases"
to your variable name here or here in the what if script.
I hope this helps you to understand your problem.
from covid19_inference.
I use your SIR model and I don't change all default variable names.
from covid19_inference.
Hmm this is quite strange than, I'm going to test it.
from covid19_inference.
Oh! I know, I cancel the weekend modulation because I don't need the weekend modulation. When I add the line of code. It can run correctly.
However, We really don't need the weekend modulation for Chinese CDC. How to cancel the weekend modulation at the same time, assure the correct variable name "new_cases"?
from covid19_inference.
I see
You can just change the name in this line from "delayed_cases"
to "new_cases"
and it should work.
new_cases = cov19.model.delay_cases(
cases=new_cases,
name_cases="delayed_cases",
pr_mean_of_median=pr_delay,
pr_median_of_width=0.3,
)
Or add it manually to the trace with:
pm.Deterministic("new_cases",new_cases)
from covid19_inference.
I see. Thank you very much!
from covid19_inference.
Related Issues (20)
- Testing data class
- JHU-data has different format HOT 2
- Example SIR model with one german state has negative lambda values? HOT 9
- Advanced plotting in example_bundeslaender.ipynb is broken
- delay_cases function parameters
- cannot import name 'data_retrieval' HOT 4
- Import error when module covid19_inference is installed (instead of loaded from directory) HOT 1
- Region population size HOT 3
- AttributeError: 'RKI' object has no attribute 'get_new_confirmed' & 'get_confirmed' HOT 2
- Script for simple SIR and SEIR models HOT 2
- Offset in _new_cases_to_cum_cases seems to be broken
- Windows user strftime bug HOT 2
- plot._distributions does not acoomodate named models HOT 3
- Error with Trace(MCMC) in Example_bundeslaender HOT 1
- doubt about the posterior distributions HOT 2
- ERROR [pymc3] The rhat statistic is larger than 1.4 for some parameters. The sampler did not converge. HOT 6
- KeyError when using the "state" parameter in jhu "get_new" and "get_total_confirmed_deaths_recovered" methods HOT 3
- Nan errors in example notebooks HOT 3
- :noIssue: ❓ disappeared updates of divi json data HOT 1
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 covid19_inference.