HungarianMatcher#

class HungarianMatcher[исходный код]#

Базовые классы: Matcher

Matches clusters to families by the maximum sum of the pair log-likelihoods.

The matcher solves the assignment problem exactly, so it can choose a locally worse pair when this makes the total log-likelihood larger. A pair with log-likelihood -inf is impossible: it is never chosen while an assignment without impossible pairs exists. If every assignment contains an impossible pair, the error lists the reasons of all impossible pairs.

When all families form a single group of identical families, all assignments are equivalent. In this case the pair log-likelihoods and failure reasons are not requested at all: the identity permutation is returned and match orders the clusters by their means. For identical families among different families, the order inside each group is also canonicalized by match after the exact assignment is found.

Methods

match(table)

Match clusters to families and order identical families.