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
21 stars 6 forks source link

Disable missing value check #14

Open cckao opened 6 years ago

cckao commented 6 years ago

Hi,

Is it possible to disable missing value check in generated codes? In many cases this is unnecessary and I think disabling it would improve prediction speed. Thanks a lot.

nextcam commented 5 years ago

Would be nice for sure!

I'm using a regex to get around of it instead:

!\(data\[[0-9]*\].missing.!=.-1\).\|\|

hcho3 commented 5 years ago

I'll add an option to disable missing value checks. Some models do not use missing values, unlike XGBoost.

rush4ratio commented 4 years ago

Would very much appreciate a missing value flag.