Non-IID Learning for Recommendation, Time Series and Hashing