I'm trying to use a neural network by training it on trainData and then testing on testData, as anyone would do. However, the data requires dummy coding of some nominal features to numerical. When I do that, it trains the neural network but fails when applying it to the test data (on which I apply the exact same transformations/blocks) because of a mismatch in the dummy coding*.
*The error message is in the lines of: v47=H does not exist in testData
I checked and it is true that testData does not have the value 'H' at all in v47, while trainData has it. Therefore, I'd like to ignore this 'H' in v47, or replace it.
Any way I could do this easily? Keeping in mind this might happen with other features as well and going through all the features, one by one, to fix this kind of issue, would be very time consuming.
Perhaps there's another way to tackle this?
Thanks!