Distance Weighted Supervised Learning for Offline Interaction Data