You should do the mapping first, then split the array into training and testing set. Alternatively, save the mapping somewhere if the testing data is not available yet.
You should do the mapping first, then split the array into training and testing set. Alternatively, save the mapping somewhere if the testing data is not available yet.