Decision Tree View

Visualizer

A plot of the provided decision tree using a JavaScript based library. The view can be accessed either via the "interactive view" action on the executed node or in a KNIME Server web portal page.

The view shows a decision tree consisting of a number of nodes. The class label and the class counts displayed inside the nodes correspond to those of the training data. This especially means that the shown frequencies do not correspond to the rows used for selection (unless you use the full training dataset for selection).

The configuration of the node lets you choose the number of rows to be used for selection and to enable certain controls, which are then available in the view. This includes the possibility to set a title. Enabling or disabling these controls via the configuration dialog might not seem useful at first glance but has benefits when used in a web portal/wizard execution where the end user has no access to the workflow itself.

Additionally a static SVG image can be rendered, which is then made available at the first output port.

Note, this node is currently under development. Future versions of the node might have more or changed functionality.

The node supports custom CSS styling. You can simply put CSS rules into a single string and set it as a flow variable 'customCSS' in the node configuration dialog. You will find the list of available classes and their description on our documentation page.

Input Ports

  1. Type: PMML
    Decision tree to display.
  2. Type: Data
    Data which should be run through the decision tree.

Output Ports

  1. Type: Image
    SVG image rendered by the JavaScript implementation of the decision tree plot.
  2. Type: Data
    Data table containing the input data appended with a column, that represents the selection made in the decision tree view.

Extension

This node is part of the extension

KNIME JavaScript Views

v4.0.0

Short Link

Drag node into KNIME Analytics Platform