jpmml / r2pmml

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

"double" data type in xgboost pmml #39

Closed Roniei closed 6 years ago

Roniei commented 6 years ago

The xgboost pmml is created with dataType="float" Is there any option to change the dataType to be "double"? Thanks

vruusmann commented 6 years ago

The underlying XGBoost library is using 32-bit floating point arithmetic.

Therefore, the PMML representation of XGBoost models must use float data type (not double data type) to ensure the reproducibility of predictions between XGBoost and (J)PMML.