Skip to content

Fix CV shuffle/stratified handling + hyperopt bounds guard + tests#61

Open
ujohn33 wants to merge 2 commits intoStatMixedML:masterfrom
ujohn33:fix/shuffle-bounds
Open

Fix CV shuffle/stratified handling + hyperopt bounds guard + tests#61
ujohn33 wants to merge 2 commits intoStatMixedML:masterfrom
ujohn33:fix/shuffle-bounds

Conversation

@ujohn33
Copy link

@ujohn33 ujohn33 commented Jan 13, 2026

This PR aligns LightGBMLSS.cv() with its docstring by passing through stratified and shuffle instead of forcing False. This enables proper shuffling for standard CV and supports time‑series use cases with shuffle=False. It also adds a safeguard in hyperparameter optimization to skip invalid low/high bounds (e.g., low >= high) so Optuna can continue exploring valid trials rather than failing. Unit tests extend the existing test_model.py to assert that shuffle=True and shuffle=False are respected, consistent with present test organization.

@ujohn33
Copy link
Author

ujohn33 commented Jan 27, 2026

@StatMixedML @nucflash please have a look once you find time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant