dmlc / tl2cgen

TL2cgen (TreeLite 2 C GENerator) is a model compiler for decision tree models
https://tl2cgen.readthedocs.io/en/latest/
Apache License 2.0
17 stars 6 forks source link

TestLightGBMIntegration::test_sparse_categorical_model test fails with MSVC and Apple Clang #13

Open hcho3 opened 5 years ago

hcho3 commented 5 years ago

tests/python/test_lightgbm_integration.py::TestLightGBMIntegration::test_sparse_categorical_model test generates code with high-cardinality categorical splits. For such splits, Treelite currently generates massively long if conditions. This doesn't cause issue with GCC, but crashes Apple Clang and freezes MSVC.

TODO. Implement a more compact representation for categorical splits.