-
-
Notifications
You must be signed in to change notification settings - Fork 272
NEW NOTEBOOK - counterfactual inference via calculating excess deaths during Covid-19 era #387
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
Conversation
I'll look into this, I didn't realise I committed any changes to this. It shouldn't be there |
Done. No idea why changes to the binning files got wrapped up in this |
Tests pass! It's a miracle! Although it has autocorrected a URL from |
Right. This is not going to pass unless I purposefully include the wrong URL, which is not sensible. We need to do something about |
Can you try using the full URL? That is, "http://" whatever? This seems so suggest that URLs should be excluded from spell-checking. |
|
Or perhaps that's an option that can be enabled on codespell? I didn't look closely. |
Looks like there are some args: pymc-examples/.pre-commit-config.yaml Lines 106 to 111 in 9de026c
|
So maybe the solution to the codespell part of #385 is to modify that pre-commit. |
Yep. Trying to figure out what the correct argument is |
Think I've got it. I'll create a separate PR to fix the codespell URI stuff |
Ok. I've filed a separate PR here #388 to fix this. I initially tried to just edit the precommit file locally. This then does make the local pre-commit checks pass BUT it was not letting me push the changes while the So in order to make progress here, we first have to close #388. Then I can rebase or whatever and make progress with this notebook. |
Yeah, if the only thing holding up this PR is some pre-commit stuff then I think that's probably fine. If we get this PR approved, it will still be blocked until the pre-commit gets fixed. But then this will be automatically unblocked once that happens. So now I guess I can take a look at the actual notebook! |
Happy to get comments on the content. I believe @juanitorduz will have time to provide additional review next week - we're back to needing 2 approving reviewers. |
View / edit / reply to this conversation on ReviewNB juanitorduz commented on 2022-07-04T13:02:19Z Line #22. mu = pm.Deterministic( As we are using a linear model I think it would be nice to scale the data ... maybe through a https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.StandardScaler.html ? |
@drbenvincent this is a very cool notebook! 🚀 Just left a small comment regarding scaling the data, this of course should not be a blocker to merge it. It would be great to have a follow up notebook where we allow more complex models like a local linear trend and maybe auto-regressive terms? :) |
Thanks for everyone's input on this so far. Had some issues with my main branch so life will be simpler switching over to this new PR, #391 |
Yes, I think they could be idea for the future. Perhaps for a more time-series focussed notebook. |
Hi. This PR contributes a new notebook. The primary topic is calculating excess deaths in England and Wales during the Covid-19 era. The main things of interest are the concepts covered:
Links to Google's Causal Uplift approach are drawn.
Very happy to receive any feedback 🙂
NOTE: it is likely that the checks will fail. I have been having a very hard time with the pre-commit checks. As far as I can work out, there is some auto spelling modification which is applied only to the myst version of the notebook which causes a conflict between the ipynb and myst files. I do not know how to get around this as I have very little experience with commit hooks. I was only able to even commit by bypassing the pre-commit checks with
git commit --no-verify
.