Skip to content

Instantly share code, notes, and snippets.

@wtberry
Last active April 11, 2020 22:28
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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