You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add PyMC-centric examples to commonly used pm.math functions #5537
I see that the math submodule is described by https://docs.pymc.io/en/v3/api/math.html. Functions such as pm.switch are not appearing in the submodule documentation because they are imported from aesara.tensor and hence there is no docstring where examples with PyMC models could be added. Could you provide advice on in which place you would like to see the examples?
@chritter you are looking at the old docs. The math module is now correctly rendered in https://docs.pymc.io/en/latest/api/math.html. You can click on each function and see the complete docstrings imported from aesara. The goal of this issue is to add examples of using these functions within pymc. The switch for example is often used to break symmetries in models and there should be an example of this in the docstring (or a link to pymc examples of this).
I am also adding the sphinx label, because this will only be beginner friendly if you are already familiar with both sphinx and numpydoc.
Activity
ricardoV94 commentedon Mar 3, 2022
CC @OriolAbril
chritter commentedon Mar 4, 2022
I see that the
mathsubmodule is described by https://docs.pymc.io/en/v3/api/math.html. Functions such aspm.switchare not appearing in the submodule documentation because they are imported fromaesara.tensorand hence there is no docstring where examples with PyMC models could be added. Could you provide advice on in which place you would like to see the examples?General examples of the
switchare in https://aesara.readthedocs.io/en/latest/library/tensor/basic.html.OriolAbril commentedon Mar 4, 2022
@chritter you are looking at the old docs. The math module is now correctly rendered in https://docs.pymc.io/en/latest/api/math.html. You can click on each function and see the complete docstrings imported from aesara. The goal of this issue is to add examples of using these functions within pymc. The
switchfor example is often used to break symmetries in models and there should be an example of this in the docstring (or a link to pymc examples of this).I am also adding the sphinx label, because this will only be beginner friendly if you are already familiar with both sphinx and numpydoc.
iykat commentedon Mar 30, 2023
Hi, this is my first time contributing to the pymc library. I am writing to experience my interest to work on this issue.
rag9704 commentedon Oct 26, 2023
@ricardoV94 , where to add examples?
ricardoV94 commentedon Oct 27, 2023
In here: https://github.com/pymc-devs/pymc/blob/main/docs/source/api/math.rst
HarshvirSandhu commentedon Jan 23, 2024
@ricardoV94 @OriolAbril
Is this still open? I'd like to work on this.
Please let me know which
pm.mathfunctions have to be added