jpmml / r2pmml

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

x-mathContext error in pmml import #38

Closed aravind211 closed 6 years ago

aravind211 commented 6 years ago

Hi guys

I exported a pmml file for a reg:gamma (or count:poisson) Objective function within an xgboost model. When i tried importing this into one of our in-house deployment softwares, I am getting the following error:

capture

vruusmann commented 6 years ago

Two choices, both on your end:

  1. Use SAX filtering to remove the x-mathContext attribute.
  2. Update your in-house deployment software to take advantage of this math context "hint" - it's mandatory to evaluate XGBoost models using 32-bits of precision (not the default 64-bits of precision).