Closed Alexkevin closed 6 years ago
What is your LightGBM version (release number, or the commit id)?
I attach my model file
The Tree=0
section (lines 11 to 26) doesn't contain the num_cat
attribute. This attribute is definitely present in LightGBM v2.0.7 models, but may be missing in newer ones.
The workaround would be to wrap this attribute lookup into some guarding code, such as:
if(section.contains("num_cat")){
this.num_cat_ = section.getInt("num_cat");
} else {
this.num_cat_ = 0;
}
@vruusmann the version is 2.0.1 Is it too older ? I will try to update it
The problem is the version of gbm is too older. I updated it to 2.0.10 and works well Many thanks
I tried the example you have provided with boston dataset. When I converted the model file to PMML, I got the following errors:
How to deal with it ? I attach my model file lightgbm.txt
Thanks!