pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.53k stars 1.98k forks source link

Explain how to obtain the model graphviz in a non-Ipython environment #7181

Closed Armavica closed 4 months ago

Armavica commented 5 months ago

Description

Related Issue

Checklist

Type of change


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

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.82%. Comparing base (6c6fd13) to head (9618827). Report is 2 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/pymc-devs/pymc/pull/7181/graphs/tree.svg?width=650&height=150&src=pr&token=JFuXtOJ4Cb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs)](https://app.codecov.io/gh/pymc-devs/pymc/pull/7181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs) ```diff @@ Coverage Diff @@ ## main #7181 +/- ## ========================================== - Coverage 92.24% 91.82% -0.43% ========================================== Files 100 100 Lines 16887 16887 ========================================== - Hits 15577 15506 -71 - Misses 1310 1381 +71 ``` | [Files](https://app.codecov.io/gh/pymc-devs/pymc/pull/7181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs) | Coverage Δ | | |---|---|---| | [pymc/distributions/shape\_utils.py](https://app.codecov.io/gh/pymc-devs/pymc/pull/7181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs#diff-cHltYy9kaXN0cmlidXRpb25zL3NoYXBlX3V0aWxzLnB5) | `95.93% <ø> (ø)` | | | [pymc/model/core.py](https://app.codecov.io/gh/pymc-devs/pymc/pull/7181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs#diff-cHltYy9tb2RlbC9jb3JlLnB5) | `92.22% <ø> (ø)` | | | [pymc/model\_graph.py](https://app.codecov.io/gh/pymc-devs/pymc/pull/7181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs#diff-cHltYy9tb2RlbF9ncmFwaC5weQ==) | `77.38% <ø> (ø)` | | | [pymc/pytensorf.py](https://app.codecov.io/gh/pymc-devs/pymc/pull/7181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs#diff-cHltYy9weXRlbnNvcmYucHk=) | `91.29% <ø> (ø)` | | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/pymc-devs/pymc/pull/7181/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs)
ricardoV94 commented 5 months ago

The code isn't shown, probably silly formatting issue. May need to fiddle with blank lines: https://pymcio--7181.org.readthedocs.build/projects/docs/en/7181/api/model/generated/classmethods/pymc.model.core.Model.to_graphviz.html#pymc.model.core.Model.to_graphviz