Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model implements a Bayes model for accounts and text tokens derived from transactions.
func (*Model) Infer ¶
func (m *Model) Infer(t *syntax.Transaction)
Infer replaces the given account with an inferred account. P(A | T1 & T2 & ... & Tn) ~ P(A) * P(T1|A) * P(T2|A) * ... * P(Tn|A)
func (*Model) Update ¶
func (m *Model) Update(t *syntax.Transaction)
Update updates the model with the given transaction.
Click to show internal directories.
Click to hide internal directories.