Documentation ¶
Overview ¶
Package classifier include different classifiers
Index ¶
- Constants
- type Classifier
- type ClassifierIdentity
- type Neural
- func (n *Neural) BatchTrain(people *core.People, split float64, iterations int, verbosity int, batch int)
- func (n *Neural) Identity() ClassifierIdentity
- func (n *Neural) Match(input []float32) (int, float64)
- func (n *Neural) Predict(embedding []float32) []float64
- func (n *Neural) Read(r io.Reader) error
- func (n *Neural) SetThreadshold(threshold float64)
- func (n *Neural) Train(people *core.People, split float64, iterations int, verbosity int)
- func (n *Neural) Write(w io.Writer) error
Constants ¶
View Source
const ( // NeuralMatchThreshold returns neural classifier match threshold NeuralMatchThreshold float64 = 0.75 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Classifier ¶
type Classifier interface { Identity() ClassifierIdentity Train(people *core.People, split float64, iterations int, verbosity int) BatchTrain(people *core.People, split float64, iterations int, verbosity int, batch int) Predict(input []float32) []float64 Match(input []float32) (int, float64) Write(io.Writer) error Read(io.Reader) error }
Classifier represents classifier interface
type ClassifierIdentity ¶
type ClassifierIdentity int
ClassifierIdentity represents classifier type
const ( // UnknownClassifier represents unknown classifier which is not defined UnknownClassifier ClassifierIdentity = iota // NeuralClassifier represents neural deep learning classifier NeuralClassifier // BayesClassifier represents bayes classifier BayesClassifier )
type Neural ¶
type Neural struct {
// contains filtered or unexported fields
}
Neural represents neural classifier
func (*Neural) BatchTrain ¶
func (n *Neural) BatchTrain(people *core.People, split float64, iterations int, verbosity int, batch int)
BatchTrain implement Classifier interface
func (*Neural) Identity ¶
func (n *Neural) Identity() ClassifierIdentity
Name return sclassifier name
func (*Neural) SetThreadshold ¶
SetThreadshold set Neural match threshold
Click to show internal directories.
Click to hide internal directories.