TAG discriminant analysis