I have a data set of images, labels . I took a subset of it and want to change the labels of the whole subset to a single label.
eg: MNIST 0,1,2,3,4,5,6,7,8,9  ; lets say i want labels of 5,6,7,8,9 be 5.   so final data labels be 0,1,2,3,4,5.
How to do it?