Added a helper function to print intermediate values
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
- [x] Checked that the pre-commit linting/style checks pass
- [ ] Included tests that prove the fix is effective or that the new feature works
- [ ] Added necessary documentation (docstrings and/or example notebooks)
- [ ] If you are a pro: each commit corresponds to a relevant logical change
Type of change
- [x] New feature / enhancement
- [ ] Bug fix
- [ ] Documentation
- [ ] Maintenance
- [ ] Other (please specify):
📚 Documentation preview 📚: https://pymc--7146.org.readthedocs.build/en/7146/
]
: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.
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
@@ 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: |
This is great, thanks @itsdivya1309. Can you add a short test?
This is great, thanks @itsdivya1309. Can you add a short test?
Hi! I have added a test case, please review. Thanks.