-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
DOC: Typo in Introductory Overview of PyMC? #6860
Comments
|
That's a typo, yes. Feel free to submit a PR if you have the time. |
Sure, I should be able to get to it soon. There are a few mismatches between the text and the code for the first case study: InverseGamma(1, 1) in the text but the parameters in the code are (1, 0.1), and for the local shrinkage prior the text says HalfStudentT_5, but the distribution in the code as 2 degrees of freedom. Should I make the text match the code? This blog post has similar code and uses 5 degrees of freedom for the second HalfStudentT and (1, 1) for the inverse gamma: https://austinrochford.com/posts/2021-05-29-horseshoe-pymc3.html Also sigma is mentioned after the formula for \beta_i but it doesn't appear in the formula. I would move this to after the definition of the prior for \tau. |
@brendan-m-murphy I think this PR should fix the typo? @fonnesbeck what is the review process for contributing to open source projects? I'm new here but want to be useful if I can :) |
Closed by #6925. Thanks @thompsonjjet23 for your help :) |
Sorry I didn't see this was closed until today, but the PR didn't fix the typos regarding the horseshoe prior example. |
ah my apologies @brendan-m-murphy ! i went back and looked in the mind being a bit more specific about where the typo is that is still there? i'm happy to fix it i just am not sure where to find it -- I opened this PR to fix the typo in the spelling of horseshoe , is that what you mean? |
Hi @thompsonjjet23, no worries, thanks for working on this. The model in case study 1 is referred to as a "hierarchical regularized horseshoe" (this is the first place I've seen it). In the paragraph before the model specification section of case study 1, it mentions a Half-Student T distribution with subscript 5 and an inverse gamma distribution with parameters (1, 1). But in the model in the following section, 2 is used instead of 5 in the Half-Student T distribution, and the parameters (1, 0.1) are used in the inverse Gamma distribution. The the blog post in the link in my comment above used 5 instead of 2, and (1, 1) instead of (1, 0.1). If we want to follow what is done in that blog post, then we should change the model parameters, or if we want to keep the model parameters, we should have "HalfStudentT_2" and "InverseGamma(1, 0.1)" in the text. This is the part of the model specification for case study 1 that doesn't match the text at the end of the "The Model" section:
|
Ah I think I see! Thanks for clarifying @brendan-m-murphy Is this code change in line with what you're describing? @larryshamalama let me know if instead I should be re-opening the old pull request (instead of opening a new one like I did here) |
@thompsonjjet23 yes that looks good, thanks! |
Issue with current documentation:
This line towards the end of the "Model Specification" section in the overview tutorial is a bit confusing:
Is this suppose to say "to sample" instead of "to
sigma
"?Or maybe, is the example meant to show slice sampling for
sigma
only and NUTS for the other parameters? The example just usesstep = pm.Slice()
, so nothing special is happening tosigma
here.Idea or request for content:
Could someone who knows what was intended to be said clarify this sentence?
Also, it could be nice to see an example where
Slice
is used onsigma
andNUTS
is used on the other parameters. But if the example is left as is, maybe remove the referencesigma
in the quoted sentence.The text was updated successfully, but these errors were encountered: