I have a dataset with sequences and categorical attributes associated with each sequence.
What is the best practice to include these categorical attributes in order to capture sequence variations across different attributes?
An example df
Sequence | Country | User |
[A,B,D,E,F] USA U1
[B,C,D,E] DE U123
[A,B,F,E,G,H] USA U2456
... ... ....
I want to build an LSTM model which will be able to predict the next event in the sequence.
I know how to build the LSTM model if I am only giving it the sequences as input.
But how would I be able to add the attributes Country and User as well?
If I apply one hot encoding on the sequence data, should I concatenate the one hot encoded feature vectors to it?
Or are there any other best practices here?