-
-
Notifications
You must be signed in to change notification settings - Fork 272
Re-wrote "How to debug a model" #406
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
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@@ -4,332 +4,537 @@ | |||
"cell_type": "markdown", |
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.
These are supposed to reflect when it was originally written and by whom. If you find the date in the git history it should go here, same with the author (although in this case I'm pretty sure it was me). Usually upgrading/porting a NB does not add to authors but you added new information here so you should be co-author.
Reply via ReviewNB
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.
@twiecki - thanks! I asked who authored the original in the issue tracker but didn't get a reply, I didn't think about commit history. the last commit I found was by MarcoGorelli committed on Dec 14, 2020, but it was a move from pymc3. I can't figure out how to track the original. I can put your name and Dec 14, 2020 as the date, or let me know if I should use an earlier date. I don't think I added much, just re-dressed the ideas that you put in (but figured that folks should know whom to blame since I couldn't find the original author :-) ).
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.
@kuvychko Thanks for this PR. Some comments below: a) For future, I think it would be better to submit notebooks in a separate PR, no? b) The description of this PR needs some text. c) The debug notebook has this issue opened by @OriolAbril:
d) For the history of the debugging notebook, I did this search: e) For the history of the spline notebook, this looks like the start of it: #DataUmbrellaPyMCSprint |
@reshamas - thank you, really appreciate your comments and help! I made the changes accordingly. |
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.
went over style only for now
@OriolAbril - thanks for the detailed style review and comments, super helpful! I committed requested changes. Thanks! |
@OriolAbril Do you know what's up with rtd? |
I haven't checked, but I'd guess it is related to #409. That is, the PR was opened before the error happened and needs a rebase to include the version pins, otherwise the preview installes the latest and non-working versions. |
@OriolAbril - any actions needed on my part to get this PR merged? Also, anything I need to do differently for future PRs to avoid this? |
You need to rebase upstream to origin, so that your fork is updated. # update you main branch
git checkout main
git fetch upstream
git rebase upstream/main
# update your branch
git checkout feature
git rebase main If this works 🤞🏽 , you should see these 2 commits when executing
Once you do this, push again the changes in your branch. After you fork a repo and before your PR is closed, new PRs can be merged to main, normally, that shouldn't affect your work but in this case, the building of docs was failing due to some issues in the new versions which was fixed in a different PR as Oriol explained. So now, this PR needs to have the last update so that the docs can be built. A way to avoid this is to update your fork right before creating the PR so that your branch has the latest updates. |
Rebasing
@symeneses - thank you!!! looks like it worked 👍 |
@OriolAbril - any issues with the merge? I wanna make sure it doesn't fall through the cracks somehow. Thanks! |
Re-wrote "How to debug a model" (pymc-devs#406)
References
Towards how to debug a model #109
References Project Board: https://github.com/pymc-devs/pymc-examples/projects/1
Notebook follows style guide https://docs.pymc.io/en/latest/contributing/jupyter_style.html
PR description contains a link to the relevant issue: a tracker one for existing notebooks or a proposal one for new notebooks
Check the notebook is not excluded from any pre-commit check: https://github.com/pymc-devs/pymc-examples/blob/main/.pre-commit-config.yaml
Helpful links
Notes for the Reviewer
#DataUmbrellaPyMCSprint