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

Method getWordProb

bayesian/bayesian.go:117–123  ·  view source on GitHub ↗

getWordProb returns P(W|C_j) -- the probability of seeing a particular word W in a document of this class.

(word string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

getWordsProbMethod · 0.95
TestLogScoresFunction · 0.80
TestGobsFunction · 0.80
TestClassByFileFunction · 0.80
LogScoresMethod · 0.80
ProbScoresMethod · 0.80
SafeProbScoresMethod · 0.80
WordFrequenciesMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestLogScoresFunction · 0.64
TestGobsFunction · 0.64
TestClassByFileFunction · 0.64