Inheritance diagram for prapi::RankCombiner:
Its purpose is to convert a list of rankings to a single class index that is the classification result.
|virtual int||combineRanks (const util::List< util::List< int > > &rankings) const=0|
|Combine rankings by different classifiers. |
|RankCombiner (int classCount)|
|Create a new rank combiner for the given number of classes.|
|The number of classes.|
Combine rankings by different classifiers.
Rankings by different classifiers are provided as a list in which each slot stores the rankings given by one of the classifiers (in the order the classifiers are given to a MultiClassifier). Rankings are represented as a list with as many slots as the number of classes. Slot 0 represents the rank of the first class, slot 1 the rank of the second class etc. The maximum rank is classCount-1.
Implemented in prapi::RankCombiner::BordaCount.