'Banding numeric data in lightgbm

I have a model created using LGBMRegressor where I have some numeric data type features (ints and floats). I then export to PMML. My input data for when using the PMML however is banded. E.g length can be 0-10, 11-20, etc. Is there a way to have numerical bandings in my lightGBM model and PMML? I could round to the minimum of the band before I do my model, so that my model will split at say 21, but my PMML needs to be of the form such that 0-10, 11-20 are equivalent to <21 whilst 21-30, 31-40 are equivalent to >21. All I can think is to set them as categoric variables instead but this doesn’t seem the correct approach



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source