Skip to content

Commit

Permalink
Correct naive_bayes models docstring typos
Browse files Browse the repository at this point in the history
Fixes #1573
  • Loading branch information
guycoleman authored Nov 29, 2024
1 parent 0390346 commit a1cef1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions river/naive_bayes/complement.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class ComplementNB(base.BaseNB):
Attributes
----------
class_dist : proba.Multinomial
Class prior probability distribution.
class_counts : collections.Counter
Number of times each class has been seen.
feature_counts : collections.defaultdict
Total frequencies per feature and class.
class_totals : collections.Counter
Expand Down
4 changes: 2 additions & 2 deletions river/naive_bayes/multinomial.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class MultinomialNB(base.BaseNB):
Attributes
----------
class_dist : proba.Multinomial
Class prior probability distribution.
class_counts : collections.Counter
Number of times each class has been seen.
feature_counts : collections.defaultdict
Total frequencies per feature and class.
class_totals : collections.Counter
Expand Down

0 comments on commit a1cef1c

Please sign in to comment.