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
Implements the OrderedLogistic distribution for ordinal regression (closes#54).
Uses the cumulative link (proportional odds) model via Pyro's OrderedLogisticdistribution. Cutpoint monotonicity is enforced through a cumulative
softplus reparameterisation, keeping all K tree outputs unconstrained while guaranteeing strict ordering at all times.
Changes
lightgbmlss/distributions/OrderedLogistic.py — new distribution class
lightgbmlss/distributions/__init__.py — register distribution
tests/test_distributions/test_ordinal.py — 17 unit tests
tests/utils.py — exclude from generic fixtures
docs/examples/OrderedLogistic_Regression.ipynb — end-to-end example
notebook
Test plan
All 17 ordinal-specific tests pass (pytest tests/test_distributions/test_ordinal.py)
Existing test suite unaffected (pytest tests/test_distributions/)
Notebook runs end-to-end on simulated K=4 ordinal data
Summary
Implements the
OrderedLogisticdistribution for ordinal regression (closes #54).Uses the cumulative link (proportional odds) model via Pyro's
OrderedLogisticdistribution. Cutpoint monotonicity is enforced through a cumulativesoftplus reparameterisation, keeping all K tree outputs unconstrained while guaranteeing strict ordering at all times.
Changes
lightgbmlss/distributions/OrderedLogistic.py— new distribution classlightgbmlss/distributions/__init__.py— register distributiontests/test_distributions/test_ordinal.py— 17 unit teststests/utils.py— exclude from generic fixturesdocs/examples/OrderedLogistic_Regression.ipynb— end-to-end examplenotebook
Test plan
pytest tests/test_distributions/test_ordinal.py)pytest tests/test_distributions/)