Towards Out-of-Distribution Sequential Event Prediction: A Causal Treatment