Automatic Hyperparameter Tuning in Sparse Matrix Factorization