Thank you @marty1885! that all makes more sense to me. If you could answer one more question… how does temporal memory handle Nan values? If we have pattern A, B, C, D and on another occasion A, B, Nan, D, is that learned? I imagine that it is a bad idea to remove Nans as it will be skipping part of a sequence? e.g. A, B, D.