Skip to content

Commit 32f611e

Browse files
committed
Merge pull request scikit-learn#551 from fannix/master
Fix an error in naive bayes doc
2 parents a43a187 + 477bcf0 commit 32f611e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/modules/naive_bayes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ The distribution is parametrized by vectors
109109
:math:`\theta_y = (\theta_{y1},\ldots,\theta_{yn})`
110110
for each class :math:`y`, where :math:`n` is the number of features
111111
(in text classification, the size of the vocabulary)
112-
and :math:`\theta_{yi}` is the probability :math:`P(y \mid x_i)`
112+
and :math:`\theta_{yi}` is the probability :math:`P(x_i \mid y)`
113113
of feature :math:`i` appearing in a sample belonging to class :math:`y`.
114114

115115
The parameters :math:`\theta_y` is estimated by a smoothed

0 commit comments

Comments
 (0)