|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcc.mallet.classify.Classifier
cc.mallet.classify.ClassifierEnsemble
public class ClassifierEnsemble
Classifer for an ensemble of classifers, combined with learned weights. The procedure is to obtain the score from each classifier (typically p(y|x)), perform the weighted sum of these scores, then exponentiate the summed score for each class, and re-normalize the resulting per-class scores. In other words, the scores of the ensemble classifiers are treated as input features in a Maximum Entropy classifier.
| Field Summary |
|---|
| Fields inherited from class cc.mallet.classify.Classifier |
|---|
instancePipe |
| Constructor Summary | |
|---|---|
ClassifierEnsemble(Classifier[] classifiers,
double[] weights)
|
|
| Method Summary | |
|---|---|
Classification |
classify(Instance instance)
|
| 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 ClassifierEnsemble(Classifier[] classifiers,
double[] weights)
| Method Detail |
|---|
public Classification classify(Instance instance)
classify in class Classifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||