This is the demo code for the paper "Efficient Discriminative Learning of Parametric Nearest Neighbor Classifiers" in CVPR 2012.