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. -->
The function
constrainedDirichlet
in the ordinal regression notebook tries to min-max scale the cutpoints using the formulax * (min + (max - min))
, which only works as intended for min=0. By inspection this just simplifies tox * max
. The correct formula should bex * (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/