Naive Bayes block
From Piki
The naive Bayes classifier block (also known as Idiot's Bayes) is a simple probabilistic classifier. It is based on a probability model that is based on highly questionable independence assumptions. The basic model assumes that there is no correlation between the input features.
| Naive Bayes | |
| Input ports | 1 |
| Output ports | 1 |
| Deployable | Yes |
| Weights | Yes |
| Memory | No |
| Interactive GUI | No |
Despite its simple design and questionable assumptions naive Bayes classifiers can perform beyond any reasonable expectation. Since it is extremely fast to train and use, in many cases it is in practice superior to many more advanced methods.
Contents |
Usage
The naive Bayes is a classifier that maps a number of input features to a set of labels (classes).
The component has two ports, one (top) that takes the input signal and the other (bottom) that takes the desired classification. The signal on the desired classification port has to have nominal enumeration (one feature per class, with 1 marking membership and -1 marking non-membership. This is only needed during training. With adaptation turned off, any data can be sent in on the desired classification port as it won't be used).
For more information on nominal encoding see details in tutorial 2.
Operation
Settings
The settings can be modified using the settings browser.
| Naive Bayes settings |
|---|
|
|
GUI details
The naive Bayes has a standard basic interface:
| Naive Bayes training GUI |
|---|
|
|
See also
- Block - Article covering general block principles.
- List of Block components - List of all available blocks.
- Classifier Showdown - Blog tutorial comparing different classifiers
- Naive Bayes update rule - The update rule used with this block.


