jpmml / r2pmml

R library for converting R models to PMML
GNU Affero General Public License v3.0
73 stars 18 forks source link

Unable to convert xgboost model to pmml using "r2pmml" #63

Closed arkokate closed 3 years ago

arkokate commented 3 years ago

Hi,

I am trying to convert xgboost model to pmml using "r2pmml".

I have following version history :

I am able to convert pmml for other classifier but getting below error for xgboost -

"Error in .convert(tempfile, file, converter, converter_classpath, verbose): The JPMML-R conversion application has failed (error code 1)"

I tried couple of things as per different user suggestion but no luck.

What is the latest version of xgboost supported for r2pmml ?

Any alternative suggestion will be always great.

PS : Its also not working for sample examples and resulting the same error (github/cran/websites - iris and other datasets)

Thanks in advance.

Regards, Amol

arkokate commented 3 years ago

After lot of troubleshooting got the minor error. In feature map second and third columns need to be factor not character. Issue resolved now. Thanks for this wonderful package.

Regards, Amol