|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.classify.Classifier cc.mallet.classify.Winnow
public class Winnow
Classification methods of Winnow2 algorithm.
WinnowTrainer
,
Serialized FormField Summary |
---|
Fields inherited from class cc.mallet.classify.Classifier |
---|
instancePipe |
Constructor Summary | |
---|---|
Winnow(Pipe dataPipe,
double[][] newWeights,
double theta,
int idim,
int jdim)
Passes along data pipe and weights from WinnowTrainer |
Method Summary | |
---|---|
Classification |
classify(Instance instance)
Classifies an instance using Winnow's weights |
Methods inherited from class cc.mallet.classify.Classifier |
---|
alphabetsMatch, classify, classify, classify, getAccuracy, getAlphabet, getAlphabets, getAverageRank, getF1, getF1, getF1, getFeatureSelection, getInstancePipe, getLabelAlphabet, getPerClassFeatureSelection, getPrecision, getPrecision, getPrecision, getRecall, getRecall, getRecall, print, print |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Winnow(Pipe dataPipe, double[][] newWeights, double theta, int idim, int jdim)
WinnowTrainer
dataPipe
- needed for dictionary, labels, feature vectors, etcnewWeights
- weights calculated during training phasetheta
- value used for thresholdidim
- i dimension of weights arrayjdim
- j dimension of weights arrayMethod Detail |
---|
public Classification classify(Instance instance)
classify
in class Classifier
instance
- an instance to be classified
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |