|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umass.cs.mallet.base.classify.Classifier
edu.umass.cs.mallet.base.classify.Winnow
Classification methods of Winnow2 algorithm.
WinnowTrainer| Field Summary |
| Fields inherited from class edu.umass.cs.mallet.base.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 edu.umass.cs.mallet.base.classify.Classifier |
classify, classify, classify, getAccuracy, getAccuracy, getAlphabet, getF1, getF1, getF1, getF1, getInstancePipe, getLabelAlphabet, getPrecision, getPrecision, getPrecision, getPrecision, getRecall, 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 array| Method Detail |
public Classification classify(Instance instance)
classify in class Classifierinstance - an instance to be classified
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||