MILDE: multiple instance learning by discriminative embedding