Tag: A Mixed Generative-Discriminative Based Hashing Method