Icon

02_​Mass_​Learning_​Event_​Prediction_​MLlib_​to_​PMML

MLlib model to PMML

This workflow demonstrates the usage of the Spark MLlib to PMML node. Together with the Compiled Model Predictor and the JSON Input/Output node it can be used to model a so called lambda architecture which learns a machine learning model at scale on historical data offline and predicts events online using the learned model.

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.

Mass Learning on all Your Historical Data Prediction Fast Event Prediction Mass Learning Event Prediction This workflow demonstrates the usage of the Spark MLlib to PMML node. train modelin SparkconvertsPMML toJavatraining datatest dataKNIME tableto DataFrameInstantiate Sparklocally ContainerInput (JSON) ContainerOutput (JSON) Spark k-Means Spark MLlib to PMML PMML Compiler Compiled ModelPredictor JSON to Table Table to JSON File Reader File Reader Entropy Scorer Compiled ModelPredictor Table to Spark Create Local BigData Environment Mass Learning on all Your Historical Data Prediction Fast Event Prediction Mass Learning Event Prediction This workflow demonstrates the usage of the Spark MLlib to PMML node. train modelin SparkconvertsPMML toJavatraining datatest dataKNIME tableto DataFrameInstantiate Sparklocally ContainerInput (JSON) ContainerOutput (JSON) Spark k-Means Spark MLlib to PMML PMML Compiler Compiled ModelPredictor JSON to Table Table to JSON File Reader File Reader Entropy Scorer Compiled ModelPredictor Table to Spark Create Local BigData Environment

Nodes

Extensions

Links