MCPcopy Create free account
hub / github.com/andeya/algorithm / SafeProbScores

Method SafeProbScores

bayesian/bayesian.go:331–367  ·  view source on GitHub ↗

SafeProbScores works the same as ProbScores, but is able to detect underflow in those cases where underflow results in the reverse classification. If an underflow is detected, this method panics, allowing the user to recover as necessary. Note that underflow, under certain rare circumstances, may st

(doc []string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestSeenLearnedFunction · 0.95
TestInduceUnderflowFunction · 0.95

Calls 4

getPriorsMethod · 0.95
findMaxFunction · 0.85
getWordProbMethod · 0.80
LogMethod · 0.45

Tested by 2

TestSeenLearnedFunction · 0.76
TestInduceUnderflowFunction · 0.76