Icon

01_​Spark_​MLlib_​Decision_​Tree

Spark MLlib decision tree

This workflow demonstrates the usage of the Spark MLlib Decision Tree Learner and Spark Predictor. It also demonstrates the conversion of categorical columns into numerical columns which is necessary since the MLlib algorithms only support numerical features and labels.

The workflow makes use of the Create Local Big Data Environment node to create a Spark context. You can swap this node out for a Create Spark Context (Livy) node to connect to a remote cluster.

Apache Spark MLlib Decision Tree This workflow demonstrates the usage of the Spark MLlib Decision Tree Learner and Spark Predictor. training datatest dataKNIME tableto DataFrameKNIME tableto DataFrame File Reader File Reader Spark CategoryTo Number Spark Decision TreeLearner (MLlib) Spark Predictor(MLlib) Spark Number ToCategory (Apply) Spark Scorer Table to Spark Table to Spark Create Local BigData Environment Apache Spark MLlib Decision Tree This workflow demonstrates the usage of the Spark MLlib Decision Tree Learner and Spark Predictor. training datatest dataKNIME tableto DataFrameKNIME tableto DataFrame File Reader File Reader Spark CategoryTo Number Spark Decision TreeLearner (MLlib) Spark Predictor(MLlib) Spark Number ToCategory (Apply) Spark Scorer Table to Spark Table to Spark Create Local BigData Environment

Nodes

Extensions

Links