# Urgent - What is wrong with my decision tree predictor for new data

**URL:** <https://forum.knime.com/t/urgent-what-is-wrong-with-my-decision-tree-predictor-for-new-data/13292>\
**Category:** KNIME Analytics Platform\
**Created:** [January 27, 2019, 3:01am UTC](https://forum.knime.com/t/urgent-what-is-wrong-with-my-decision-tree-predictor-for-new-data/13292 "2019-01-27T03:01:37Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [January 27, 2019, 2:45pm UTC](https://forum.knime.com/t/urgent-what-is-wrong-with-my-decision-tree-predictor-for-new-data/13292/10 "2019-01-27T14:45:07Z")

</div>

I attached the whole workflow in a slightly new version. Now also including the XGBoost and H2O models.

Maybe at some point you could elaborate about your Document preparation (now in the Meta Node) - that could be illustrative for other people too.

H2O gives no better Accuracy but GBM could provide you with a list of variable importance. That can be useful in checking if the whole thing makes sense. For example if a variable would show up here that might contain a ‘leak’ you might notice.

 ![image](https://forum-cdn.knime.com/uploads/default/original/2X/0/03ad0af6018f8221551436200096811a4eb0f29f.png)

For the XGBoost I also added the scoring of new data from the m\_001 workflow with the original decision tree.

 ![image](https://forum-cdn.knime.com/uploads/default/original/2X/d/d6c99f523a6c980b59fb4bff7e270f50e916ee91.png)

I am a little bit obsessed with the preservation of IDs because if you want to bring such a thing into production question will always be to identify the cases/customers and often you have to match that back to some external data source. So please take extra care about IDs, customer numbers etc.

 ![image](https://forum-cdn.knime.com/uploads/default/original/2X/2/22e41ac2b7f7b719b136c7d5473d74e128d97616.png)

[kn\_example\_document\_prediction.knar](https://forum-cdn.knime.com/uploads/default/original/2X/8/878f30371c6190a7efbc35947c943d4a9a7ac960.knar) (3.8 MB)

–  
Edit: [KNIME — Machine Learning and Artificial Intelligence — A Collection | by Markus Lauber | Low Code for Data Science | Medium](https://medium.com/low-code-for-advanced-data-science/knime-machine-learning-and-artificial-intelligence-a-collection-12e0f7d83b50)

---

_[View the full topic](https://forum.knime.com/t/urgent-what-is-wrong-with-my-decision-tree-predictor-for-new-data/13292)._
