I am not able to find an answer to how I should classify a varying number of sequence of binary flags + other features. My data looks like this (these are events, so the order is important and I may have other features in addition to sequence):
ID | Flag 1 | Flag 2 | Flag 3 | Other Feature |
---|---|---|---|---|
A | 1 | 1 | 0 | 0.1 |
A | 0 | 1 | 0 | 0.3 |
A | 0 | 0 | 1 | 3.1 |
B | 0 | 1 | 0 | 1.1 |
B | 1 | 1 | 0 | 0.0 |
Notice that ID:B does not have the same number of entries (only 2). Any suggestion on how I should organize this data and what should I use to classify? How do I better capture the sequence of Flags? During inference, I will provide the sequence of flags [[1,1,0],[0,1,0],[0,0,1]] OR [[0,1,0],[1,1,0]] and "other feature" to get the label since the order of sequence makes up the positive or negative label.