Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs/code mismatch - ComplementNB attribute name #1573

Open
Rosuav opened this issue Jul 10, 2024 · 0 comments
Open

Docs/code mismatch - ComplementNB attribute name #1573

Rosuav opened this issue Jul 10, 2024 · 0 comments

Comments

@Rosuav
Copy link

Rosuav commented Jul 10, 2024

Versions

river version: 0.21.1, 0.21.2
Python version: 3.12
Operating system: Mac OS, Linux

Describe the bug

Documentation at https://riverml.xyz/0.21.1/api/naive-bayes/ComplementNB/ describes an attribute called class_dist but this is not found on the object itself. Instead, there is a class_totals which appears to have the same information.

Steps/code to reproduce

>>> import river.naive_bayes
>>> nb = river.naive_bayes.ComplementNB()
>>> nb.class_dist
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'ComplementNB' object has no attribute 'class_dist'
>>> nb.class_counts
Counter()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant