MCPcopy Index your code
hub / github.com/andeya/algorithm / getWordsProb

Method getWordsProb

bayesian/bayesian.go:131–137  ·  view source on GitHub ↗

getWordsProb returns P(D|C_j) -- the probability of seeing this set of words in a document of this class. Note that words should not be empty, and this method of calulation is prone to underflow if there are many words and their individual probabilties are small.

(words []string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

getWordProbMethod · 0.95

Tested by

no test coverage detected