# a und b sind dann indices; a alle Beobachtungen, b das Evaluation set a = np.array([1, 2, 3, 2, 4, 1]) b = np.array([3, 5, 6]) print(np.setdiff1d(a, b))