You cannot connect various specialized views (such as R and Scikit-Learn) to a generic view (such as PMML). You may be lucky that you are trying to translate R data structures into Scikit-Learn data structures directly.
XGBoost really is an exception to the above rule, because its R and Scikit-Learn implementations are just subtle wrappers around its own XGBoost library. Inside the trained XGBoost R object is blob raw , which is a model in its own XGBoost view. Save it to a file and load it in Python using the xgb.Booster.load_model(fname) method.
If you know that you need to deploy the XGBoost model in Scikit-Learn, then why do you train it in R?
source share