jpmml / r2pmml

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

R2pmml for xgboost not working #29

Closed san1289 closed 6 years ago

san1289 commented 6 years ago

Hi,

I was trying to execute your example for exporting an xgboost model and got the below error:

image

How can i resolve this

vruusmann commented 6 years ago

First, please update to the latest r2pmml package version (you're using JPMML-R 1.2.12 (released in January 2017), but the current one is 1.2.18).

Your screenshot does not contain any information about the conversion error. What is printed to the console after this "<truncated>" phrase?

san1289 commented 6 years ago

I ran it using the latest version of the package and is still getting the same error. There is nothing printed to the console after truncated phase:

image

vruusmann commented 6 years ago

In that case you need to disable output truncation. Or, depending on your R execution environment (RStudio perhaps?) the full exception stack trace might be available in R log file.

There is not a single bit of actionable information on your screenshot. Sure, I can see that you're using JPMML-R version 1.2.18 now, but that's all.

vruusmann commented 6 years ago

I have just re-installed the r2pmml package in my computer. The example script given in its README file works as advertised: https://github.com/jpmml/r2pmml#package-xgboost

Attached is the PMML document to prove it: iris_xgb.pmml.txt