Skip to content
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

Some documentation improvements to MLE_MAP and SVI_P #3022

Merged
merged 1 commit into from
Feb 25, 2022
Merged

Some documentation improvements to MLE_MAP and SVI_P #3022

merged 1 commit into from
Feb 25, 2022

Conversation

nipunbatra
Copy link
Contributor

SVI Part 1

  • Changed beta distribution to Beta distribution
  • Changed bernoulli to Bernoulli

MLE MAP

  • Add analytical MLE expression and show learnt MLE is same as analytical MLE
  • Add analytical MAP expression and show learnt MAP is same as analytical MAP
  • render_model() showing the graphical models and how they differ for MLE and MAP model
  • use uniform prior additionally for MAP model and show MAP = MLE
  • added plot comparing Prior distribution, MLE solution, MAP solution and Prior Mean
  • Show neg loglikelihood(optimum) = SVI loss for MLE (optimum)

Closes #3019

- Changed beta distribution to Beta distribution
- Changed bernoulli to Bernoulli

- Add analytical MLE expression and show learnt MLE is same as analytical MLE
- Add analytical MAP expression and show learnt MAP is same as analytical MAP
- render_model() showing the graphical models and how they differ for MLE and MAP model
- use uniform prior additionally for MAP model and show MAP = MLE
- Show neg loglikelihood(optimum) = SVI loss for MLE (optimum)
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@fritzo fritzo left a comment

Choose a reason for hiding this comment

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

These look like great improvements to the tutorials, @nipunbatra!

@fritzo fritzo merged commit f4fafc5 into pyro-ppl:dev Feb 25, 2022
@nipunbatra
Copy link
Contributor Author

Many thanks for accepting this PR and guiding throughout!

Do the docs take some time to update? I still see the docs without the changes from this PR. Or, does the docs update need a manual push?

@fritzo
Copy link
Member

fritzo commented Feb 25, 2022

Do the docs take some time to update?

The api docs at https://docs.pyro.ai are updated automatically after a few minutes. The tutorials at https://pyro.ai/examples are updated manually after each release (we do that to ensure the tutorials are all compatible with the latest Pyro release).

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.

[documentation: some suggestions for MLE & MAP guide]
2 participants