# Naive Bayes¶

 `GaussianNB`([priors, classes]) Fit a naive bayes model with a Gaussian likelihood

These follow the scikit-learn estimator API, and so can be dropped into existing routines like grid search and pipelines, but are implemented externally with new, scalable algorithms and so can consume distributed Dask arrays and DataFrames rather than just in-memory NumPy and Pandas arrays and DataFrames.

## Example¶

```In : from dask_ml import datasets

In : from dask_ml.naive_bayes import GaussianNB

In : X, y = datasets.make_classification(chunks=50)

In : gnb = GaussianNB()

In : gnb.fit(X, y)
Out: GaussianNB()
```
{"ft_lang_label":"__label__en","ft_lang_prob":0.6858397,"math_prob":0.8112922,"size":684,"snap":"2021-43-2021-49","text_gpt3_token_len":171,"char_repetition_ratio":0.10147059,"word_repetition_ratio":0.0,"special_character_ratio":0.22660819,"punctuation_ratio":0.13114753,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9895636,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-11-27T11:19:19Z\",\"WARC-Record-ID\":\"<urn:uuid:5844ab8b-d6b8-4bd0-9edc-651b0dde6948>\",\"Content-Length\":\"28923\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9f3fa2a9-87d6-44bb-a2fa-11bd2f49e820>\",\"WARC-Concurrent-To\":\"<urn:uuid:11958c33-03b4-439b-8a34-a9e807b45f8d>\",\"WARC-IP-Address\":\"172.67.170.20\",\"WARC-Target-URI\":\"https://ml.dask.org/naive-bayes.html\",\"WARC-Payload-Digest\":\"sha1:LQL6HOFIOUDX4EQMFLBUAB3ADW4GZQXT\",\"WARC-Block-Digest\":\"sha1:ZFVDF7FFFSXMPOSQVQ6KYVWNBH7PRLM7\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964358180.42_warc_CC-MAIN-20211127103444-20211127133444-00350.warc.gz\"}"}