Skip to content

Fix domain specification docstrings for OrderedLogistic and OrderedProbit#8088

Open
hrideymarwah15 wants to merge 1 commit intopymc-devs:mainfrom
hrideymarwah15:fix/ordered-dist-docstrings-7486
Open

Fix domain specification docstrings for OrderedLogistic and OrderedProbit#8088
hrideymarwah15 wants to merge 1 commit intopymc-devs:mainfrom
hrideymarwah15:fix/ordered-dist-docstrings-7486

Conversation

@hrideymarwah15
Copy link

Fixes #7486

The docstrings incorrectly stated that ordinal data values range from 1 to K, when in fact they should be 0-indexed (ranging from 0 to K-1).

Changes:

  • Updated OrderedLogistic docstring to indicate 0 to K-1 range
  • Updated OrderedProbit docstring to indicate 0 to K-1 range
  • Added explicit note in both classes about 0-based indexing requirement

…obit

Fixes pymc-devs#7486

The docstrings incorrectly stated that ordinal data values range from 1 to K,
when in fact they should be 0-indexed (ranging from 0 to K-1).

Changes:
- Updated OrderedLogistic docstring to indicate 0 to K-1 range
- Updated OrderedProbit docstring to indicate 0 to K-1 range
- Added explicit note in both classes about 0-based indexing requirement

This clarifies the expected data format and helps users avoid off-by-one errors.
@github-actions github-actions bot added the hackathon Suitable for hackathon label Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hackathon Suitable for hackathon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix domain specification docstrings of ordered distributions

1 participant