Skip to content

Commit

Permalink
Add Gaussian Naive Bayes (rapidsai#4079)
Browse files Browse the repository at this point in the history
This is a continuation of PR rapidsai#1763 and rapidsai#4053, to add Gaussian Naive Bayes.
This is supposed to be merged after rapidsai#4053 

Here is a comparison of cuML and SKLearn performance on Gaussian NB.
This is done using a synthetic dataset generated by make_regression.
The GPU used is a RTX 8000, and the CPU is i9-10920X @ 3.50GHz
![gaussian](https://user-images.githubusercontent.com/9810050/126572439-8982faa8-5ad1-4bca-91ab-76704050bf33.png)

Linking issue rapidsai#1666

Authors:
  - Micka (https://github.com/lowener)
  - Corey J. Nolet (https://github.com/cjnolet)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: rapidsai#4079
  • Loading branch information
lowener authored Aug 9, 2021
1 parent 398ff4a commit e8d4c40
Show file tree
Hide file tree
Showing 4 changed files with 532 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ Naive Bayes
.. autoclass:: cuml.naive_bayes.BernoulliNB
:members:

.. autoclass:: cuml.naive_bayes.GaussianNB
:members:

Stochastic Gradient Descent
---------------------------

Expand Down
1 change: 1 addition & 0 deletions python/cuml/naive_bayes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@

from cuml.naive_bayes.naive_bayes import MultinomialNB
from cuml.naive_bayes.naive_bayes import BernoulliNB
from cuml.naive_bayes.naive_bayes import GaussianNB
Loading

0 comments on commit e8d4c40

Please sign in to comment.