joint inference over local classifiers