# Decision tree learner seems to be overfitting

**URL:** <https://forum.knime.com/t/decision-tree-learner-seems-to-be-overfitting/38612>\
**Category:** KNIME Analytics Platform\
**Created:** [January 6, 2022, 12:11pm UTC](https://forum.knime.com/t/decision-tree-learner-seems-to-be-overfitting/38612 "2022-01-06T12:11:32Z")\
**Posts on this page:** 1\
**Showing post:** 21

<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 11, 2022, 8:58pm UTC](https://forum.knime.com/t/decision-tree-learner-seems-to-be-overfitting/38612/21 "2022-01-11T20:58:28Z")

</div>

> [@akhtarameen](#):
>
> The important thing for me was to convert the trained model into PMML in order to test my model in python. That is why I was limited to using certain learner nodes in KNIME.

@akhtarameen you can import H2O.ai MOJO models into KNIME, R, Python and Spark (and back). That is why I like to use this format - for example I can develop a model on an R machine and then deploy it on a big data cluster.

[This collection](https://kni.me/w/C__oI-oLpF-rrq1J) actually contains Jupiter notebook that basically does the same thing. So you might want to try that. There you might also see how to use relative paths in a notebook.

> **[mlauber71/Public – script](https://hub.knime.com/mlauber71/spaces/Public/kn_example_bigdata_h2o_automl_spark/script~tMr5Dhny0qxoUnxr/)**
>
> A large collection of KNIME workflows for version up to 4.7. In the /forum/ subfolder are some examples for questions from the forum from 2021 and before – contains 3 items

> [@H2O.ai AutoML in KNIME for classification problems](https://forum.knime.com/t/h2o-ai-automl-in-knime-for-classification-problems/20923):
>
> H2O.ai Automl - a powerful auto-machine-learning framework wrapped with KNIME It features various models like Random Forest or XGBoost along with Deep Learning. It has wrappers for R and Python but also could be used from KNIME. The results will be written to a folder and the models will be stored in MOJO format to be used in KNIME (as well as on a Big Data cluster via Sparkling Water). One major parameter to set is the running time the model has to test various models and do some hyperparam…

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/f/1/f1c506aef773a0f2e2860fb04a623c9f8b1c81c6.png)

> [@akhtarameen](#):
>
> I did run the AutoML node as well but got some different results.

This might be because of different splits in test and training, data preparation with vtreat and longer runtime with model building.

> **[H2O.ai AutoML (wrapped with R community nodes) in KNIME for classification...](https://hub.knime.com/mlauber71/spaces/Forum/2022/kn_forum_38612_h2o_ecg_classification_r_vtreat~R5CqA_dRwQHqYGtm/current-state)**
>
> H2O.ai AutoML (wrapped with R community nodes) in KNIME for classification problems (with R vtreat) - a powerful auto-machine-learning framework (https://hub.k…

---

_[View the full topic](https://forum.knime.com/t/decision-tree-learner-seems-to-be-overfitting/38612)._
