Relabeling algorithm for retrieval of noisy instances and improving prediction quality