Create a Naïve Bayes Model.

Parameters:

Parameters:
See dedicated page for more information.
Naïve Bayes simply “smoothens” the dataset based on the conditional probabilities, basically computes the average probability of an event given a set of characteristics.
The Naïve Bayes algorithm is included in ETL mainly because of historical reasons (and for explanatory/teaching purposes). Indeed, from a pratical point-of-view, the “Naïve Bayes” algorhtm is not very useful anymore because:
To use the Naïve Bayes action, simply select the predictors, target, and set the model output file name.
| Column Name | Description |
|---|---|
| Class | Target variable for classification |
| Factor1 | Feature column (categorical/factor) |
| Factor2 | Additional feature (optional) |
Important:
Class column must contain exactly 2 unique values (binary classification only).The action generates an HTML report containing:
Model Summary
Confusion Matrices
ROC Curves



| Problem | Solution |
|---|---|
object 'eTarget' not found |
Ensure idxTarget is mapped to a column named Class |
column 'Class' is missing |
Your input file must include the Class column |
Number of classes is not equal to 2 |
Naive Bayes currently supports binary classification only |
Type mismatch in predictors |
All idxFeatures columns must be categorical (factors) |
NA introduced by coercion |
Check for invalid (e.g., numeric or missing) values in feature columns |
Missing packages (XML, mice, etc.) |
Contact admin to pre-install required R libraries |
Notes:
- Exported models can be reused in other pipelines by referencing the .joblib file.
- Use consistent factor levels between training and future prediction datasets.
