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

Replaced "log-likelihood" with "distribution" in for all the classes where distributions is more appropriate rather than log-likelihood. #7573

Merged
merged 8 commits into from
Mar 14, 2025

Conversation

tanishy7777
Copy link
Contributor

@tanishy7777 tanishy7777 commented Nov 13, 2024

Replaced "log-likelihood" with "distribution" in for all the classes where distributions is more appropriate rather than log-likelihood.

Description

Updated the docstrings for better clarity. Replaced "log-likelihood" with "distribution" to accurately describe the functionality, as the class provides more than just log-likelihood, including mean, variance and covariance.

Related Issue

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

📚 Documentation preview 📚: https://pymc--7573.org.readthedocs.build/en/7573/

Updated the docstrings for better clarity. Replaced "log-likelihood" with "distribution" to accurately describe the functionality, as the class provides more than just log-likelihood, including cdf, mean, and random methods.
Copy link

welcome bot commented Nov 13, 2024

Thank You Banner]
💖 Thanks for opening this pull request! 💖 The PyMC community really appreciates your time and effort to contribute to the project. Please make sure you have read our Contributing Guidelines and filled in our pull request template to the best of your ability.

@ricardoV94
Copy link
Member

Hi @tanishy7777 the idea is to change all the cases where this happened, not just MvNormal

Updated the docstrings for better clarity. Replaced "log-likelihood" with "distribution" to accurately describe the functionality, as the class provides more than just log-likelihood, including mean, variance, covariance.
@tanishy7777
Copy link
Contributor Author

I've implemented the changes as per your suggestions in the latest commit. Apologies for the delayed response my end-semester exams were going on. @ricardoV94

@ricardoV94
Copy link
Member

Does this happen only in multivariate.py?

Updated the docstrings for better clarity. Replaced "log-likelihood" with "distribution" to accurately describe the functionality, as the class provides more than just log-likelihood, including mean, variance, covariance, etc.
Updated the docstrings for better clarity. Replaced "log-likelihood" with "distribution" to accurately describe the functionality, as the class provides more than just log-likelihood, including mean, variance, covariance.
Updated the docstrings for better clarity. Replaced "log-likelihood" with "distribution" to accurately describe the functionality, as the class provides more than just log-likelihood including log-cdf, log-pdf.
@tanishy7777
Copy link
Contributor Author

tanishy7777 commented Nov 27, 2024

Oh ok, will make the necessary changes. I think only the pymc/distributions folder has the files where the changes need to be made right?
Also I am not sure why some tests are failing for continous.py and discrete.py

Updated the docstrings for better clarity. Replaced "log-likelihood" with "distribution" to accurately describe the functionality, as the class provides more than just log-likelihood, including mean, variance and covariance.
Updated the docstrings for better clarity. Replaced "log-likelihood" with "distribution" to accurately describe the functionality.
@tanishy7777
Copy link
Contributor Author

tanishy7777 commented Nov 28, 2024

I have updated all the files that need to be changes in the pymc/distributions folder. Please let me know if any other changes need to be made or if anything needs to be modified @ricardoV94 @twiecki

@AtulBoyal
Copy link

Hi, I noticed that PR #7573 has been inactive for 5 months. Is this issue still open for contribution? If the original contributor is unavailable, I’d love to work on it!

@tanishy7777
Copy link
Contributor Author

Hi, I noticed that PR #7573 has been inactive for 5 months. Is this issue still open for contribution? If the original contributor is unavailable, I’d love to work on it!

Hey, I think I have already made all of the changes required by this issue. But please go ahead if you find any more places where the changes need to be made. From my end the PR is done. I was waiting for the approval from the maintainers.

@tanishy7777
Copy link
Contributor Author

@ricardoV94 @twiecki Just wanted to remind you about this PR. Please have a look at it at your convenience.

@twiecki twiecki changed the title Fix for issue #7563 Replaced "log-likelihood" with "distribution" in for all the classes where distributions is more appropriate rather than log-likelihood. Mar 14, 2025
@twiecki twiecki merged commit af81955 into pymc-devs:main Mar 14, 2025
2 of 3 checks passed
Copy link

welcome bot commented Mar 14, 2025

Congratulations Banner]
Congrats on merging your first pull request! 🎉 We here at PyMC are proud of you! 💖 Thank you so much for your contribution 🎁

@twiecki
Copy link
Member

twiecki commented Mar 14, 2025

Thanks!

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.

Docstrings of distributions should not read x log-likelihood
4 participants