Skip to content

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

Merged
merged 8 commits into from
Aug 17, 2022
Merged

Conversation

kuvychko
Copy link
Contributor

@kuvychko kuvychko commented Jul 31, 2022

References

Helpful links

Notes for the Reviewer

#DataUmbrellaPyMCSprint

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@@ -4,332 +4,537 @@
"cell_type": "markdown",
Copy link
Member

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

Copy link
Contributor Author

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 :-) ).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@twiecki - new changes are in, thanks to @reshamas who found the commit history.

@reshamas
Copy link
Member

reshamas commented Aug 1, 2022

@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?
Unless for some reason these notebooks are connected. No need to change it now.

b) The description of this PR needs some text.
Here is an example of what can be added:
#401

c) The debug notebook has this issue opened by @OriolAbril:
#109

Towards #109

d) For the history of the debugging notebook, I did this search:
https://github.com/pymc-devs/pymc/commits/76bd40e0d1db4fd906b7d558dcf1bd79f1011963/docs/source/notebooks/howto_debugging.ipynb

e) For the history of the spline notebook, this looks like the start of it:
#230

#DataUmbrellaPyMCSprint
@symeneses

@kuvychko
Copy link
Contributor Author

kuvychko commented Aug 1, 2022

@reshamas - thank you, really appreciate your comments and help! I made the changes accordingly.

@OriolAbril OriolAbril changed the title Re-wrote "How to debug a model" #109 Re-wrote "How to debug a model" Aug 2, 2022
Copy link
Member

@OriolAbril OriolAbril left a 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

@kuvychko
Copy link
Contributor Author

kuvychko commented Aug 2, 2022

@OriolAbril - thanks for the detailed style review and comments, super helpful! I committed requested changes. Thanks!

@twiecki
Copy link
Member

twiecki commented Aug 8, 2022

@OriolAbril Do you know what's up with rtd?

@OriolAbril
Copy link
Member

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.

@kuvychko
Copy link
Contributor Author

@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?

@symeneses
Copy link
Contributor

symeneses commented Aug 13, 2022

@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 git log:

commit 76fae3ffff138021abf484ea4317e74d31f970cb (HEAD -> feature, upstream/main, origin/main, origin/HEAD, main)
Author: Reshama Shaikh <reshama.stat@gmail.com>
Date:   Thu Aug 4 12:17:04 2022 -0400

commit 50db8524366302c262f08505c670b995b5b88438
Author: Sandra Yojana Meneses <sandrayojana@gmail.com>
Date:   Wed Aug 3 09:57:04 2022 +0200

    Upgrade notebook Gaussian Process to V4 (#404)

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.

@kuvychko
Copy link
Contributor Author

@symeneses - thank you!!! looks like it worked 👍

@kuvychko
Copy link
Contributor Author

@OriolAbril - any issues with the merge? I wanna make sure it doesn't fall through the cracks somehow. Thanks!

@OriolAbril OriolAbril merged commit 69499d9 into pymc-devs:main Aug 17, 2022
@kuvychko kuvychko deleted the feature branch August 17, 2022 02:33
kuvychko added a commit to kuvychko/pymc-examples that referenced this pull request Aug 18, 2022
Re-wrote "How to debug a model" (pymc-devs#406)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants