bayes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class = ml.Class

type Column

type Column = ml.Column

type DType

type DType = ml.DType

type NaiveBayes

type NaiveBayes struct {
	// contains filtered or unexported fields
}

func New

func New(classes []string, prob []DType, featuresDim int) *NaiveBayes

func NewFromDataset

func NewFromDataset(data ml.Dataset) *NaiveBayes

func (*NaiveBayes) Fit

func (nb *NaiveBayes) Fit(dataset [][]Column)

func (*NaiveBayes) PredictTo

func (nb *NaiveBayes) PredictTo(probs []DType, object []DType)

func (*NaiveBayes) SetProb

func (nb *NaiveBayes) SetProb(prob []DType)

type Row

type Row = ml.Row

Jump to

Keyboard shortcuts

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