ML Assignment 8 - Collaborative Filtering Gradient (vectorized implementation)