I want to use the HTM.JAVA framework to predict what will happen the next step based on the sequence of behaviors, the sequence consists of different behaviors in a time order, such as : A->B->C->A->D…
how can I encode the relations between the behaivors, I have two types of encoding strategies:
- decompse the sequence into tuples such as A->B, B->C, C->A…and encode the tuple as a SDR;
- encode each separate behavior as a SDR, and the whole sequence is converted to a sequence of SDRs.
I want to know, which will be better for the prediction accuracy?
If I use the first strategy, how can I encode the relation into a SDR?