Disentangling the Roles of Representation and Selection in Data Pruning