Repository navigation
Preserve nonempty categorical vocabulary bounds during compilation - #1260
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1260 +/- ##
=======================================
Coverage 82.91% 82.91%
=======================================
Files 173 173
Lines 11191 11194 +3
=======================================
+ Hits 9279 9282 +3
Misses 1912 1912 ☔ View full report in Codecov by Harness. |
d01d0ea to
24b0bc8
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
Summary
Record that a nonempty input column produces at least one unique category. This lets
torch.compileresolve subsequent empty-vocabulary checks without changing category values or codes.Description of the change
Encountered during raw-label preparation for compiled KumoTabular fitting. This localized reproduction isolates the same empty-vocabulary check used by
AlignCategories(CPU, PyTorch 2.14):unique()already compiles, but its learned output size can appear to be zero. Four added lines usetorch._checkto tell the compiler each vocabulary is nonempty when the input is nonempty. Empty rows and columns retain their existing behavior. This fixes this bound only; other KumoTabular fitting blockers remain.Validation
fullgraph=True.