0 ×

Spark Naive Bayes Learner (MLlib)

KNIME Extension for Apache Spark core infrastructure version 4.2.0.v202007072005 by KNIME AG, Zurich, Switzerland

This node applies the Apache Spark Naive Bayes algorithm. It outputs the original data and the Naive Bayes predictions for the result preview as well as the learned model for later application.

Please note that all data must be numeric, including the label column. 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 second in port of this node.

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

Options

Lambda
Additive smoothing parameter between 0 and 1.
Feature Columns
The feature columns to learn the model from. Supports only numeric columns.
Class column
The classification column. Must be numeric.

Input Ports

Input Spark DataFrame/RDD

Output Ports

Spark MLlib Naive Bayes Model

Installation

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

KNIME 4.2

A zipped version of the software site can be downloaded here. Read our FAQs to get instructions about how to install nodes from a zipped 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.

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.