Sparse Generalized Dissimilarity Model