Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTokens ¶
Types ¶
type Classifier ¶
type Classifier interface { Fit() Predict() }
type LogisticRegression ¶
type LogisticRegression struct {
// contains filtered or unexported fields
}
func NewLogisticRegression ¶
func NewLogisticRegression() *LogisticRegression
func NewLogisticRegressionFromModel ¶
func NewLogisticRegressionFromModel(filepath string) *LogisticRegression
func (*LogisticRegression) Fit ¶
func (lr *LogisticRegression) Fit(X, y *mat64.Dense)
func (*LogisticRegression) Predict ¶
func (lr *LogisticRegression) Predict(X *mat64.Dense) []Prediction
func (*LogisticRegression) SaveModel ¶
func (lr *LogisticRegression) SaveModel(filepath string)
type NaiveBayes ¶
type NaiveBayes struct {
// contains filtered or unexported fields
}
func NewNaiveBayes ¶
func NewNaiveBayes() *NaiveBayes
func NewNaiveBayesFromGob ¶
func NewNaiveBayesFromGob(gobStr string) *NaiveBayes
func (*NaiveBayes) Fit ¶
func (nb *NaiveBayes) Fit(X, y *mat64.Dense)
func (*NaiveBayes) Predict ¶
func (nb *NaiveBayes) Predict(X *mat64.Dense) []Prediction
func (*NaiveBayes) ToGob ¶
func (nb *NaiveBayes) ToGob() string
type Prediction ¶
Click to show internal directories.
Click to hide internal directories.