daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Feb 16th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def training_step(data, vectorizer):
  2.     training_text = [data[0] for data in data]
  3.     training_result = [data[1] for data in data]
  4.  
  5.     training_text = vectorizer.fit_transform(training_text)
  6.  
  7.     return BernoulliNB().fit(training_text, training_result)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top