pymc icon indicating copy to clipboard operation
pymc copied to clipboard

Added a helper function to print intermediate values

Open itsdivya1309 opened this issue 1 year ago • 4 comments

Description

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

Related Issue

  • [ ] Closes #
  • [ ] Related to #6841

Checklist

Type of change

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

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

itsdivya1309 avatar Feb 09 '24 17:02 itsdivya1309

Thank You Banner] :sparkling_heart: Thanks for opening this pull request! :sparkling_heart: 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.

welcome[bot] avatar Feb 09 '24 17:02 welcome[bot]

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.

:exclamation: 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%) :arrow_down:

... and 39 files with indirect coverage changes

codecov[bot] avatar Feb 10 '24 16:02 codecov[bot]

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

twiecki avatar Feb 11 '24 12:02 twiecki

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

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

itsdivya1309 avatar Feb 12 '24 14:02 itsdivya1309