# Save XGBOOST Model as PMML

**URL:** <https://forum.knime.com/t/save-xgboost-model-as-pmml/15249>\
**Category:** KNIME Analytics Platform\
**Created:** [May 21, 2019, 12:09pm UTC](https://forum.knime.com/t/save-xgboost-model-as-pmml/15249 "2019-05-21T12:09:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeitung](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/z/8edcca/32.png) [@zeitung](https://forum.knime.com/u/zeitung)\
**Post date:** [May 21, 2019, 12:09pm UTC](https://forum.knime.com/t/save-xgboost-model-as-pmml/15249/1 "2019-05-21T12:09:55Z")

</div>

Hi,

I’m trying to export ‘XGBOOST Tree Ensemble’ as PMML model. But PMML writer is not allowing me to export the model.

Are there any other ways to export or save XGBoost models using KNIME?

Thanks,  
Zeitung

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [May 22, 2019, 4:30am UTC](https://forum.knime.com/t/save-xgboost-model-as-pmml/15249/2 "2019-05-22T04:30:45Z")

</div>

You could use the model writer like in this example

> [@Urgent - What is wrong with my decision tree predictor for new data](https://forum.knime.com/t/urgent-what-is-wrong-with-my-decision-tree-predictor-for-new-data/13292/9):
>
> If the data preparation is any good (please check that since you seemed to ave put a lot of effort into it) using the latest star in the modelling universe [XGBoost](https://nodepit.com/category/labs/xgboost) you can -well- boost your Accuracy to 97.941% - and yes at a certain point overfitting might set in. [m\_010\_xgboost\_tree.knwf](https://forum-cdn.knime.com/uploads/default/original/2X/9/9bbc3ea722f8839e45054a4545cb8768ce8d8434.knwf) (190.4 KB) [xgboost\_tree\_model.zip](https://forum-cdn.knime.com/uploads/default/original/2X/3/3b72c426d5486e33e1bd3b1b7f877e68dc06c6e0.zip) (156.4 KB)

---

<div class="post-metadata">

**Author:** ![MichaelBennett](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/7bcc69/32.png) [@MichaelBennett](https://forum.knime.com/u/MichaelBennett)\
**Post date:** [November 6, 2019, 8:02am UTC](https://forum.knime.com/t/save-xgboost-model-as-pmml/15249/3 "2019-11-06T08:02:39Z")

</div>

Hi All,

I’m not sure as to whether the ‘Model Writer’ node actually writes to PMML or not? Is anybody able to clarify this?

Kind regards,  
Michael

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [November 6, 2019, 11:06am UTC](https://forum.knime.com/t/save-xgboost-model-as-pmml/15249/4 "2019-11-06T11:06:38Z")

</div>

No it does not. The model writer does write a broad variety of models into a ZIP file. PMML is a separate case.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [May 6, 2020, 11:11pm UTC](https://forum.knime.com/t/save-xgboost-model-as-pmml/15249/5 "2020-05-06T23:11:40Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
