<commit_before>import numpy as np
import dask.array as da
from dask import delayed
from sklearn.base import BaseEstimator


class GaussianNB(BaseEstimator):

    def __init__(self, priors=None, classes=None):
        self.priors = priors
        self.classes = classes
        self.classes_ = classes<commit_msg>DOC: Added naive bayes example<commit_after>import numpy as np
import dask.array as da
from dask import delayed
from sklearn.base import BaseEstimator


class GaussianNB(BaseEstimator):
    """
    Fit a naive bayes model with a Gaussian likelihood

    Examples
    --------
    >>> from daskml import datasets
    >>> from daskml.naive_bayes import GaussianNB
    >>> X, y = datasets.make_classification(chunks=10)
    >>> gnb = GaussianNB()
    >>> gnb.fit(X, y)
    """

    def __init__(self, priors=None, classes=None):
        self.priors = priors
        self.classes = classes
        self.classes_ = classes
{'fraction_non_alphanumeric': 0.09257265877287406, 'fraction_numerical': 0.002152852529601722, 'mean_word_length': 3.1517857142857144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7447565', 'n_tokens_mistral': 290, 'n_tokens_neox': 268, 'n_words': 84}