Skip to content

Commit 3b8dc3d

Browse files
committed
Update Sphinx docs for GaussianNB partial_fit
1 parent 3146a1f commit 3b8dc3d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/modules/naive_bayes.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,13 @@ It is advisable to evaluate both models, if time permits.
181181
Out-of-core naive Bayes model fitting
182182
-------------------------------------
183183

184-
Discrete naive Bayes models can be used to tackle large scale text
185-
classification problems for which the full training set might not fit in
186-
memory. To handle this case both :class:`MultinomialNB` and
187-
:class:`BernoulliNB` expose a ``partial_fit`` method that can be used
184+
Naive Bayes models can be used to tackle large scale classification problems
185+
for which the full training set might not fit in memory. To handle this case,
186+
:class:`MultinomialNB`, :class:`BernoulliNB`, and :class:`GaussianNB`
187+
expose a ``partial_fit`` method that can be used
188188
incrementally as done with other classifiers as demonstrated in
189-
:ref:`example_applications_plot_out_of_core_classification.py`.
189+
:ref:`example_applications_plot_out_of_core_classification.py`. Both discrete
190+
classifiers support sample weighting; :class:`GaussianNB` does not.
190191

191192
Contrary to the ``fit`` method, the first call to ``partial_fit`` needs to be
192193
passed the list of all the expected class labels.

0 commit comments

Comments
 (0)