Repository navigation
fix(optimizer): reject empty search spaces - #2174
Conversation
Signed-off-by: primorLee <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. Walkthrough
ChangesSearchSpace validation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized validation change prevents empty non-prompt search spaces from reaching runtime failure paths, and no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/ok to test 4128a62 |
Signed-off-by: primorLee <[email protected]>
|
/ok to test 484ae94 |
|
/merge |
Description
Reject a non-prompt SearchSpace that defines neither categorical values nor numeric bounds during Pydantic configuration validation. This prevents an empty configuration from reaching Optuna as two None bounds and failing mid-run with an unrelated TypeError.
The existing grid-search runtime test is moved to the shared construction-time validation contract, and the complete SearchSpace test module remains green.
Closes #2172
By Submitting this PR I confirm:
Validation
Summary by CodeRabbit