0 ×

Spark Decision Tree Learner

KNIME Extension for Apache Spark core infrastructure version 2.4.0.v201811301556 by KNIME AG, Zurich, Switzerland

This node applies the Apache Spark Decision / Regression Tree algorithm.

Please note that all data must be numeric, including the label column for classification tasks. Use the Spark Category To Number nodes to convert nominal values to numeric columns. The mapping dictionary of the converter node is the input of the second in port of this node.

Use the Spark Predictor node to apply the learned model to unseen data.


Max number of bins
Maximum number of bins used for discretizing continuous features and for choosing how to split on features at each node.
Max depth
Maximum depth of the tree (>= 0).
Is classification
Indicates whether this is a classification or a regression task.
Quality measure
Criterion used for information gain calculation. Available methods: "gini" (recommended) or "entropy". For more details on the available methods see the MLlib documentation.
Class column
The classification column. Must be numeric.
Feature Columns
The feature columns to learn the model from. Supports only numeric columns.

Input Ports

Input Spark DataFrame/RDD
PMML with the nominal values mapping dictionary

Output Ports

Spark MLlib Decision Tree Model


To use this node in KNIME, install KNIME Extension for Apache Spark core infrastructure from the following update site:

Wait a sec! You want to explore and install nodes even faster? We highly recommend our NodePit for KNIME extension for your KNIME Analytics Platform.