a guest Feb 16th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def training_step(data, vectorizer):
- training_text = [data for data in data]
- training_result = [data for data in data]
- training_text = vectorizer.fit_transform(training_text)
- return BernoulliNB().fit(training_text, training_result)
RAW Paste Data