Pretext Training Algorithms for Event Sequence Data