Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var VERSION = "v0.0.1"
Functions ¶
This section is empty.
Types ¶
type BayesBrain ¶
type BayesBrain struct { FeaturesFrequency map[string]int CategoriesFrequency map[string]int FeaturesFrequencyInEachCategory map[string]map[string]int }
func NewBayesBrain ¶
func NewBayesBrain() *BayesBrain
func (*BayesBrain) Learn ¶
func (brain *BayesBrain) Learn(category string, features ...string)
func (*BayesBrain) Load ¶
func (brain *BayesBrain) Load(filename string) error
func (*BayesBrain) Save ¶
func (brain *BayesBrain) Save(filename string) error
func (*BayesBrain) Show ¶
func (brain *BayesBrain) Show()
Click to show internal directories.
Click to hide internal directories.