pymc-devs / pymc-examples

Examples of PyMC models, including a library of Jupyter notebooks.
https://www.pymc.io/projects/examples/en/latest/
MIT License
259 stars 212 forks source link

Bugfix of cutpoint calculations in ordinal regression notebook #564

Closed fonnesbeck closed 11 months ago

fonnesbeck commented 11 months ago

The function constrainedDirichlet in the ordinal regression notebook tries to min-max scale the cutpoints using the formula x * (min + (max - min)), which only works as intended for min=0. By inspection this just simplifies to x * max. The correct formula should be x * (max - min) + min. This is corrected in this PR.

To make the merge process smoother we've provided some links and a checklist below.

We understand that PRs can sometimes be overwhelming, especially as the reviews start coming in. Please let us know if the reviews are unclear or the recommended next step seems overly demanding, if you would like help in addressing a reviewer's comments, or if you have been waiting too long to hear back on your PR. -->

Helpful links


:books: Documentation preview :books:: https://pymc-examples--564.org.readthedocs.build/en/564/

review-notebook-app[bot] commented 11 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB