Documentation ¶
Index ¶
- func CalculateD(K, yOuter *mat.Dense) *mat.Dense
- func CalculateGramMatrix(X *mat.Dense) *mat.Dense
- func CalculateYOuterProduct(y *mat.VecDense) *mat.Dense
- type Model
- type TweetClassifier
- func (clf *TweetClassifier) ClassifyTweets()
- func (clf *TweetClassifier) LoadTestSet(testSet *mat.Dense)
- func (clf *TweetClassifier) LoadTrainingSet(documentTermMatrix *mat.Dense, trainingLabels mat.Vector)
- func (clf *TweetClassifier) LoadValidationLabels(validatonLabelsFilename string)
- func (clf *TweetClassifier) StoreResults(labelsFilename, statsFilename string)
- func (clf *TweetClassifier) Train(maxPasses int)
- func (clf *TweetClassifier) Validate()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Model ¶
Model is a good model
type TweetClassifier ¶
type TweetClassifier struct {
// contains filtered or unexported fields
}
TweetClassifier is a good thing to have
func NewTweetClassifier ¶
func NewTweetClassifier(kernel kernel.Kernel, C, tolerance float64) *TweetClassifier
NewTweetClassifier is a thing
func (*TweetClassifier) ClassifyTweets ¶
func (clf *TweetClassifier) ClassifyTweets()
func (*TweetClassifier) LoadTestSet ¶
func (clf *TweetClassifier) LoadTestSet(testSet *mat.Dense)
func (*TweetClassifier) LoadTrainingSet ¶
func (clf *TweetClassifier) LoadTrainingSet(documentTermMatrix *mat.Dense, trainingLabels mat.Vector)
LoadTrainingSet is a thing
func (*TweetClassifier) LoadValidationLabels ¶
func (clf *TweetClassifier) LoadValidationLabels(validatonLabelsFilename string)
func (*TweetClassifier) StoreResults ¶
func (clf *TweetClassifier) StoreResults(labelsFilename, statsFilename string)
func (*TweetClassifier) Train ¶
func (clf *TweetClassifier) Train(maxPasses int)
func (*TweetClassifier) Validate ¶
func (clf *TweetClassifier) Validate()
Click to show internal directories.
Click to hide internal directories.