Decision Tree to Image

Renders a decision tree view as an image.

The data input port is optional and can provide a column with color information used to color the charts displayed in the nodes of the decision tree.

Options

Width (in Pixel)
The width of the output image.
Height (in Pixel)
The height of the output image.
Tree scaling
Controls how the decision tree is scaled to fit into the image area.
  • Shrink to image area: The tree is only scaled down if it does not fit, ensuring it is always fully visible.
  • Fit to image area: The tree is scaled up or down so it always fills the entire image area.
  • Fixed value: A specific zoom factor is applied regardless of the tree size.
Zoom
The zoom factor applied when Fixed value scaling is selected. Values range from 0.1 (10%) to 5 (500%).
Branch display method
Controls which branches of the decision tree are rendered on the image.
  • Unfold with data coverage: All branches whose total data coverage is greater than the specified threshold are displayed.
  • Unfold to level: All nodes from the root (level 0) down to the specified level are displayed.
Unfold to level
The tree is unfolded from the root (level 0) down to this level. For example, entering 2 will show the root, its children, and their children.
Unfold with data coverage
All branches with a total data coverage greater than this threshold are unfolded. Values range from 0 to 1.
Display table
If checked, each node of the decision tree will include a table showing the class distribution of the training data that reached that node.
Display chart
If checked, each node of the decision tree will include a bar chart visualizing the class distribution. Note that the chart is only available when the optional data input provides a column with color information.

Input Ports

Icon
A previously learned decision tree model.
Icon
A data input which has the only purpose to provide a column with color information.

Output Ports

Icon
The image of the decision tree (PNG).

Views

Decision Tree View
The rendered image. The second tab provides a dynamic decision tree view which allows to explore the decision tree.

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.