Collaborative Deep Learning for Recommender Systems