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

Added a helper function to print intermediate values #7146

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

itsdivya1309
Copy link

@itsdivya1309 itsdivya1309 commented Feb 9, 2024

Description

Added a helper function, print_value that uses Print Op to print intermediate values and help in model debugging.

Related Issue

Checklist

Type of change

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

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

Copy link

welcome bot commented Feb 9, 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.

Copy link

codecov bot commented Feb 10, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 92.34%. Comparing base (4c3ec36) to head (b41805c).
Report is 1 commits behind head on main.

❗ Current head b41805c differs from pull request most recent head d4df94f. Consider uploading reports for the commit d4df94f to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #7146      +/-   ##
==========================================
+ Coverage   92.28%   92.34%   +0.06%     
==========================================
  Files         100      101       +1     
  Lines       16899    16935      +36     
==========================================
+ Hits        15595    15639      +44     
+ Misses       1304     1296       -8     
Files Coverage Δ
pymc/model/core.py 91.89% <40.00%> (-0.34%) ⬇️

... and 39 files with indirect coverage changes

@twiecki
Copy link
Member

twiecki commented Feb 11, 2024

This is great, thanks @itsdivya1309. Can you add a short test?

pymc/model/core.py Outdated Show resolved Hide resolved
@itsdivya1309
Copy link
Author

itsdivya1309 commented Feb 12, 2024

This is great, thanks @itsdivya1309. Can you add a short test?

Hi!
I have added a test case, please review.
Thanks.

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.

None yet

3 participants