Skip to content

CU-5t5y0p Regarding issue #222 of pymc-devs/pymc-examples #4986

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 8 commits into from
Closed

CU-5t5y0p Regarding issue #222 of pymc-devs/pymc-examples #4986

wants to merge 8 commits into from

Conversation

itsguneetsingh
Copy link
Contributor

In docs/source/glossary.md
Added definition for Equidispersion, Generalized Poisson PMF, Bayes' Theorem, MC, MCMC

…theorem, Markov Chain (MC) and Markov Chain Monte Carlo (MCMC)
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.

Thanks for the PR! Haven't had time to read the definitions yet but I wanted to do a first review round as soon as possible.

To not repeat myself too much, also read #4984 (review) as I think links between terms will also be helful here and there aren't any yet

@codecov
Copy link

codecov bot commented Sep 8, 2021

Codecov Report

Merging #4986 (17d04dd) into main (4f8ad5d) will decrease coverage by 0.21%.
The diff coverage is n/a.

❗ Current head 17d04dd differs from pull request most recent head 8753246. Consider uploading reports for the commit 8753246 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4986      +/-   ##
==========================================
- Coverage   76.56%   76.34%   -0.22%     
==========================================
  Files          86       86              
  Lines       13965    13931      -34     
==========================================
- Hits        10692    10636      -56     
- Misses       3273     3295      +22     
Impacted Files Coverage Δ
pymc3/step_methods/hmc/quadpotential.py 74.04% <0.00%> (-6.51%) ⬇️
pymc3/sampling.py 86.00% <0.00%> (-0.95%) ⬇️
pymc3/step_methods/hmc/nuts.py 97.50% <0.00%> (ø)
pymc3/parallel_sampling.py 87.29% <0.00%> (+1.00%) ⬆️

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.

Thanks for the quick update, I meant links between terms, like the suggestion I did in the other PR. I have added a suggestion of link between terms, I hope it's clear enough

References to external definitions are also fine but a different thing altogether. I don't know most of these websites, but we'd need some guarantees that they are trustworthy and stable (i.e. that these urls won't have changed 4 years from now).

Note also that some links are not correctly formatted, you have to make sure to follow markdown syntax. If you go over the checks at the bottom of this PR, you'll see a readthedocs check. Clicking on the "details" there will show you a preview of the docs with the changes in your PR. Here is how they look right now: https://pymc3--4986.org.readthedocs.build/en/4986/glossary.html?highlight=glossary

I would also remove the acronyms from the term name and include it only in the description so it's easier to reference those terms. If some acronym is especially important by itself (i.e. MCMC appears in half of the pages of the documentation), then make the term have two "names" like with myst and myst markdown in https://github.com/executablebooks/jupyter-book/blob/master/docs/reference/glossary.md

Copy link
Contributor

@martinacantaro martinacantaro left a comment

Choose a reason for hiding this comment

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

Good progress, needs more work in format and definitions. I left some specific comments that I think will help!

A Markov chain or Markov process is a stochastic model describing a sequence of possible events in which the probability of each event depends only on the state attained in the previous event. For a visual explantation, visit the link.

[Markov Chain Monte Carlo](https://en.wikipedia.org/wiki/Markov_chain_Monte_Carlo)
[MCMC](https://machinelearningmastery.com/markov-chain-monte-carlo-for-probability/)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's leave only one title (and one title link) for Markov Chain Monte Carlo, which can look like this:
[Markov Chain Monte Carlo (MCMC)]

Copy link
Member

Choose a reason for hiding this comment

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

I prefer very much to have the two titles, especially thinking about linking to that term, but I agree both should have the same link.

If we use Markov Chain Monte Carlo (MCMC) we have to use

{term}`Markov Chain Monte Carlo (MCMC)` 

to link to it. Otherwise we should be able to use both

{term}`MCMC`
{term}`Markov Chain Monte Carlo`

or maybe only one of them, not completely sure how it works, if both are usable, only the first, only the last... but I do know the glossary allows multiple names per definition.

@itsguneetsingh
Copy link
Contributor Author

Could someone maybe check my commits?

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.

remember that you can check the preview of the glossary on the PR checks section, the rtd one which is the only one relevant here runs always

I have also marked some previous discussions as resolved, but not all of them, so don't directly disregard the messages above

[Bayes' theorem](https://en.wikipedia.org/wiki/Bayes%27_theorem)
Describes the probability of an event, based on prior knowledge of conditions that might be related to the event. For example, if the risk of developing health problems is known to increase with age, Bayes' theorem allows the risk to an individual of a known age to be assessed more accurately (by conditioning it on their age) than simply assuming that the individual is typical of the population as a whole.
Formula:
{term}`P(A|B) = (P(B|A) P(A))/P(B)`
Copy link
Member

Choose a reason for hiding this comment

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

This will not work, term is only to link to terms defined in the glossary. Math can be inserted either as inline equation or block equation with dollar delimiters like one would do on latex/jupyter notebook (reference: https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#dollar-delimited-math, we already have everything configured for the repo, so pay attention only to the examples)

@itsguneetsingh
Copy link
Contributor Author

I am going to have to close this PR. For some reason, I had to create a new forked repo and thus a new PR for that repo. @OriolAbril could you maybe create a website link for that PR? so that I can see what impact my changes would have on the website? My apologies for the inconvenience. Link to the PR -> #5014

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.

3 participants