MCPcopy Create free account
hub / github.com/devAmoghS/Machine-Learning-with-Python / word_probabilities

Function word_probabilities

naive_bayes_classfier/utils.py:22–27  ·  view source on GitHub ↗

Turn the word_counts into a list of triplets: w, p(w|spam) and p(w|~spam)

(counts, total_spams, total_non_spams, k=0.5)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

trainMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected