Joint Model and Data Sparsification via the Marginal Likelihood