Formula

General Formula of the Naive Bayes Classifier for Text Classification

The general model of the Naive Bayes classifier for text classification can be written as: c^=argmaxcClogP(c)+ilogP(wic)\hat{c}=\text{argmax}_{c\in C}\log P(c)+\sum_i \log P(w_i|c), where CC is the set of all possible classes, and ii is the position of word wiw_i in the text. This is a linear model because the prediction is computed as a linear combination of input features (i.e., the words).

0

1

Updated 2026-05-18

Tags

Data Science