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

Function NewClassifier

bayesian/bayesian.go:142–167  ·  view source on GitHub ↗

NewClassifier returns a new classifier. The classes the provided should be at least 2 in number and unique, or this method will panic.

(classes ...Class)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 12

TestEmptyFunction · 0.85
TestNoClassesFunction · 0.85
TestNotUniqueFunction · 0.85
TestOneClassFunction · 0.85
TestLearnFunction · 0.85
TestProbScoresFunction · 0.85
TestSeenLearnedFunction · 0.85
TestInduceUnderflowFunction · 0.85
TestLogScoresFunction · 0.85
TestGobsFunction · 0.85
TestClassByFileFunction · 0.85

Calls 1

newClassDataFunction · 0.85

Tested by 12

TestEmptyFunction · 0.68
TestNoClassesFunction · 0.68
TestNotUniqueFunction · 0.68
TestOneClassFunction · 0.68
TestLearnFunction · 0.68
TestProbScoresFunction · 0.68
TestSeenLearnedFunction · 0.68
TestInduceUnderflowFunction · 0.68
TestLogScoresFunction · 0.68
TestGobsFunction · 0.68
TestClassByFileFunction · 0.68