bayes

package
v0.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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 is a model trained from a journal

func NewModel

func NewModel(exclude *journal.Account) *Model

NewModel creates a new model.

func (*Model) Infer

func (m *Model) Infer(t *ast.Transaction, tbd *journal.Account) *ast.Transaction

Infer replaces the given account with an inferred account.

func (*Model) Update

func (m *Model) Update(t *ast.Transaction)

Update updates the model with the given transaction.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL