Skip to content

Update GLM-robust.ipynb #356

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

Closed
wants to merge 5 commits into from
Closed

Conversation

conorhassan
Copy link
Contributor

{Insert Description}

Helpful links

@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 Jun 2, 2022

View / edit / reply to this conversation on ReviewNB

twiecki commented on 2022-06-02T12:17:36Z
----------------------------------------------------------------

With the watermark below you can get rid of the print.


@review-notebook-app
Copy link

review-notebook-app bot commented Jun 2, 2022

View / edit / reply to this conversation on ReviewNB

twiecki commented on 2022-06-02T12:17:37Z
----------------------------------------------------------------

Is there a red line undeneath the black ones? seems really faint, not sure what in the code would cause that.


conorhassan commented on 2022-06-02T13:05:06Z
----------------------------------------------------------------

I agree that there looks like there is some faint colouring lines somewhere within the black ones, but there is nothing? there in the code that I can see.

@review-notebook-app
Copy link

review-notebook-app bot commented Jun 2, 2022

View / edit / reply to this conversation on ReviewNB

twiecki commented on 2022-06-02T12:17:37Z
----------------------------------------------------------------

aesara.tensor -> at


@review-notebook-app
Copy link

review-notebook-app bot commented Jun 2, 2022

View / edit / reply to this conversation on ReviewNB

twiecki commented on 2022-06-02T12:17:38Z
----------------------------------------------------------------

Fix span issue.


@review-notebook-app
Copy link

review-notebook-app bot commented Jun 2, 2022

View / edit / reply to this conversation on ReviewNB

twiecki commented on 2022-06-02T12:17:39Z
----------------------------------------------------------------

Try with nu=3.


@review-notebook-app
Copy link

review-notebook-app bot commented Jun 2, 2022

View / edit / reply to this conversation on ReviewNB

twiecki commented on 2022-06-02T12:17:39Z
----------------------------------------------------------------

legend missing.

I'd probably just remove this plot because it's a bit redundant.


@review-notebook-app
Copy link

review-notebook-app bot commented Jun 2, 2022

View / edit / reply to this conversation on ReviewNB

twiecki commented on 2022-06-02T12:17:40Z
----------------------------------------------------------------

if you move the plot of the true regression further down and decrease alpha the red line should be more visible.


@review-notebook-app
Copy link

review-notebook-app bot commented Jun 2, 2022

View / edit / reply to this conversation on ReviewNB

twiecki commented on 2022-06-02T12:17:41Z
----------------------------------------------------------------

The next post will be about logistic regression in PyMC and what the posterior and oatmeal have in common.

Can you remove this?


@twiecki
Copy link
Member

twiecki commented Jun 2, 2022

To fix pre-commit you can try to remove the corresponding myst file of the same NB and that way trigger it being recreated. Make sure to also include that file in your commit.

Copy link
Contributor Author

I agree that there looks like there is some faint colouring lines somewhere within the black ones, but there is nothing? there in the code that I can see.


View entire conversation on ReviewNB

Comment on lines 18 to 20
1. [The Inference Button: Bayesian GLMs made easy with PyMC](http://twiecki.github.com/blog/2013/08/12/bayesian-glms-1/)
2. [This world is far from Normal(ly distributed): Robust Regression in PyMC](http://twiecki.github.io/blog/2013/08/27/bayesian-glms-2/)
3. [The Best Of Both Worlds: Hierarchical Linear Regression in PyMC](http://twiecki.github.io/blog/2014/03/17/bayesian-glms-3/)
Copy link
Member

Choose a reason for hiding this comment

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

Do some of these notebooks have also been adapted to examples here? If so I think it would be better to link to the updated version that will use v4 (with always each of the notebooks awknowledging they were adapted and linking to the original notebook)

Copy link
Member

Choose a reason for hiding this comment

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

Yeah those haven't been ported.

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>
@drbenvincent
Copy link
Contributor

drbenvincent commented Jun 5, 2022

I think the tests are failing because of the internal links to other notebook. These need to be updated using myst references, see
https://docs.pymc.io/en/latest/contributing/jupyter_style.html#myst-guidelines
So following the link through takes you to here https://docs.readthedocs.io/en/stable/guides/cross-referencing-with-sphinx.html#the-doc-role so I think the links needs to be replaced with this

{doc}`my_doc_name`

where my_doc_name is the filename of the notebook and should correspond to the (factor_analysis)= (for example) in the first code cell of the target notebook

@OriolAbril
Copy link
Member

We currently have 3 PRs open for this same notebook: #356, #445, #451. And I am not sure how to go about this, git conflicts on notebooks are a nightmare. I might try to merge the myst and then update the notebook from it which might happen in a 4th PR overriding the current 3. I will take a look and work on this next week. Thank you all for the PRs, I'll make sure at the very least you are listed as co-author in the merged PR.

@reshamas
Copy link
Member

reshamas commented Dec 6, 2022

@conorhassan
Can you send me the email address you use for GitHub, so @OriolAbril can add you as a co-author on the GLM-robust notebook? (can send to me on Slack)

@OriolAbril OriolAbril mentioned this pull request Dec 6, 2022
3 tasks
@OriolAbril
Copy link
Member

Superseded by #472

@OriolAbril OriolAbril closed this Dec 6, 2022
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