# Decision tree - Label on ending nodes

**URL:** <https://forum.knime.com/t/decision-tree-label-on-ending-nodes/52325>\
**Category:** KNIME Analytics Platform\
**Created:** [December 6, 2022, 1:00pm UTC](https://forum.knime.com/t/decision-tree-label-on-ending-nodes/52325 "2022-12-06T13:00:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [December 6, 2022, 1:37pm UTC](https://forum.knime.com/t/decision-tree-label-on-ending-nodes/52325/2 "2022-12-06T13:37:06Z")

</div>

@StewieGi3l you can convert your decision tree into a ruleset and apply each row separately. The rule will contain additional information to maybe identify the leaf:

> [@Looking for options to evaluate a decision tree](https://forum.knime.com/t/looking-for-options-to-evaluate-a-decision-tree/11384/2):
>
> One ‘brutal’ way could be to convert the decision tree rules into SQL and then use the SQL code. Or use the ruleset to make some kind of If then rules. Not very elegant I have to admit. [kn\_example\_decision\_tree.knwf](https://forum-cdn.knime.com/uploads/default/original/2X/1/1132014ad9feb823a8ee8e8d5c9ce19ad8c13ba2.knwf) (510.8 KB)

> **[Decision Tree with all its exports – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/kn_example_decision_tree~GbK8kmsRLtwvSKl9/current-state)**
>
> A simple decision tree with all the possibilities to store the results (as PMML or Ruleset or SQL Code) and evaluation (ROC curve)

---

_[View the full topic](https://forum.knime.com/t/decision-tree-label-on-ending-nodes/52325)._
