Okay.
Well as I understand it correctly in this fake sample there are 269 rows of patient sequences (original data there are 3087 rows), varying in lenght (as every patient has a different amount of visits). In every batch it makes them as long as the longest one in the batch. But as this algorithm is to predict the last visit label of the sequence, the input is -1. Would you need to know the longest number of visits then?