Versions in this module Expand all Collapse all v0 v0.1.0 Oct 7, 2021 Changes in this version + func AverageEntropy(view View, attribute, class string) (h float64) + func Entropy(p float64) float64 + func TotalEntropy(view View, class string) (h float64) + type Case struct + Class string + Decide *Decision + Value string + type Decision struct + Cases []*Case + Column string + func FromJSON(b []byte) (*Decision, error) + func Learn(view View, class string) *Decision + func (d *Decision) Decide(data [][]string) (result []string) + func (d *Decision) ToJSON(indent bool) ([]byte, error) + type Distinct struct + Probability float64 + Value string + func Likelihood(view View, column string) []Distinct + type View interface + Columns func() []string + Drop func(column string) View + First func() + Next func() []string + Select func(column, value string) View + func Read(reader io.Reader) (View, error)