0 ×

Naive Bayes Learner

DeprecatedKNIME Base Nodes version 4.3.2.v202103021015 by KNIME AG, Zurich, Switzerland

The node creates a Bayesian model from the given training data. It calculates the number of rows per attribute value per class for nominal attributes and the Gaussian distribution for numerical attributes. The created model could be used in the naive Bayes predictor to predict the class membership of unclassified data.


Classification Column
The class value column.
Skip missing values (incl. class column)
The node ignores missing values in the model if this option is ticked. If it's not ticked the node treats the missing values as a normal value and considers them during the class probability calculation.
Maximum number of unique nominal values per attribute
All nominal columns with more unique values than the defined number will be skipped during learning. If the column contains missing values and the 'Skip missing values' option is not skipped the missing value counts as one value!

Input Ports

Training data

Output Ports

Learned naive Bayes model


Naive Bayes Learner View
The view displays the learned model with the number of rows per class attribute. The number of rows per attribute per class for nominal attributes and the Gaussian distribution per class for numerical attributes.

Best Friends (Incoming)



To use this node in KNIME, install KNIME Base nodes from the following update site:


A zipped version of the software site can be downloaded here.

You don't know what to do with this link? Read our NodePit Product and Node Installation Guide that explains you in detail how to install nodes to your KNIME Analytics Platform.

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. Browse NodePit from within KNIME, install nodes with just one click and share your workflows with NodePit Space.


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.