Dealing with Sparse Datasets in Machine Learning