Skip to content

Spline example #232

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 2 commits into from
Oct 3, 2021
Merged

Spline example #232

merged 2 commits into from
Oct 3, 2021

Conversation

jhrcook
Copy link
Contributor

@jhrcook jhrcook commented Oct 3, 2021

Description

Addresses issue #230 and aims to advance it to Best Practices.

This PR is for a contribution of an example of a spline regression in PyMC3.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@review-notebook-app
Copy link

review-notebook-app bot commented Oct 3, 2021

View / edit / reply to this conversation on ReviewNB

canyon289 commented on 2021-10-03T14:20:05Z
----------------------------------------------------------------

Line #6.    import plotnine as gg

The version for this should be added to the watermark to make the plots reproducible


jhrcook commented on 2021-10-03T14:34:05Z
----------------------------------------------------------------

I believe it already is in the watermark because it is and imported package. In my view of the notebook, 'plotnine' is in the watermark. If you would like me to add it explicitly, though, I can.

Copy link
Contributor Author

jhrcook commented Oct 3, 2021

I believe it already is in the watermark because it is and imported package. In my view of the notebook, 'plotnine' is in the watermark. If you would like me to add it explicitly, though, I can.


View entire conversation on ReviewNB

@review-notebook-app
Copy link

review-notebook-app bot commented Oct 3, 2021

View / edit / reply to this conversation on ReviewNB

canyon289 commented on 2021-10-03T14:34:09Z
----------------------------------------------------------------

Line #6.    import plotnine as gg

Another question, is it possible to use matplotllib instead of plotnine. Ill be the first to say the grammar of graphics syntax is much more intuitive, and matplotlib can get syntax heavy.

From a maintainer perspective though it makes it much easier for us to keep your notebook updated and current, as it means less tools needed in CI to publish, less libraries that can break things, and when we update notebooks theres less things to update in general.

Let me know what you think! Again this notebook looks great really looking forward to merging it!


jhrcook commented on 2021-10-03T14:46:57Z
----------------------------------------------------------------

I'm sure it is possible to re-make the plots using 'matplotlib', but, unfortunately, I'm not very proficient with 'matlibplot'. Another option, though I know this is a big ask, is to add 'plotnine' to the environment.

canyon289 commented on 2021-10-03T15:41:19Z
----------------------------------------------------------------

No worries. Let me let another maintainer whos more aware of the docs opine on this. Hoping to help you get this merged

@review-notebook-app
Copy link

review-notebook-app bot commented Oct 3, 2021

View / edit / reply to this conversation on ReviewNB

canyon289 commented on 2021-10-03T14:34:10Z
----------------------------------------------------------------

Line #2.        blossom_data = pd.read_csv(Path("..", "data", "cherry_blossoms.csv"), sep=";")

This is great. Thank you


@review-notebook-app
Copy link

review-notebook-app bot commented Oct 3, 2021

View / edit / reply to this conversation on ReviewNB

canyon289 commented on 2021-10-03T14:34:11Z
----------------------------------------------------------------

Great notebook, thanks for contributing


jhrcook commented on 2021-10-03T14:42:26Z
----------------------------------------------------------------

Thank you, I'm happy I can contribute to the PyMC3 community.

Copy link
Contributor Author

jhrcook commented Oct 3, 2021

Thank you, I'm happy I can contribute to the PyMC3 community.


View entire conversation on ReviewNB

Copy link
Contributor Author

jhrcook commented Oct 3, 2021

I'm sure it is possible to re-make the plots using 'matplotlib', but, unfortunately, I'm not very proficient with 'matlibplot'. Another option, though I know this is a big ask, is to add 'plotnine' to the environment.


View entire conversation on ReviewNB

Copy link
Member

No worries. Let me let another maintainer whos more aware of the docs opine on this. Hoping to help you get this merged


View entire conversation on ReviewNB

@canyon289
Copy link
Member

Hey Josh,
Apologies on the delay. This is a fantastic contribution so well merge. Know we might replace the figures with matplotlib figures sometime down the road but that has nothing to do with the quality of your work, moreso with the headache of maintaining notebooks over a number of years, especially ones we want to keep around like this one!

@canyon289 canyon289 merged commit ea6f8ee into pymc-devs:main Oct 3, 2021
@jhrcook
Copy link
Contributor Author

jhrcook commented Oct 3, 2021

You reviewed and merged this within a day, so no need to apologize for a delay. Again, I’m happy I could contribute to PyMC3 given how much it and the community have helped me. If possible, could you add the label hacktoberfest-accepted to this PR so I can get credit for Hacktoberfest?

@canyon289
Copy link
Member

Of course

@OriolAbril
Copy link
Member

I added the hacktoberfest topic to the repo which I think was the reason it did not count. From what I understand reading https://hacktoberfest.digitalocean.com/resources/maintainers, PRs only need the hacktoberfest-accepted label if they are not approved nor merged during October.

Let us know if things are working now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants