Adaptive Mixture Discriminant Analysis