Closed dandan0503 closed 7 years ago
The factor type is i
. For example, a factor color["red", "yellow", "green"]
should be encoded as:
id name type
1 color=red i
2 color=yellow i
3 color=green i
The JPMML-XGBoost project provides an R utility method genFMap()
for generating feature map files based on an R data.frame
object: https://github.com/jpmml/jpmml-xgboost/blob/master/src/main/R/util.R#L3
thank you very much~~
hai, when i use r2pmml in xgboost,i don't know if my feature's type is factor,what the "type" i can write?
when "type" is 'q',in java ,i find it is float,but my feature has "string" as factor,how can i write?