Skip to content

Instantly share code, notes, and snippets.

@wtberry
Last active April 11, 2020 22:28
Show Gist options
  • Save wtberry/ae7f68f82be856f2e431914f7d36fb59 to your computer and use it in GitHub Desktop.
Save wtberry/ae7f68f82be856f2e431914f7d36fb59 to your computer and use it in GitHub Desktop.
from sklearn.naive_bayes import MultinomialNB
# instantiate the model as clf(classifier) and train it
clf = MultinomialNB()
clf.fit(x_train, y_train)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment