Choosing Good Functions for a Data Set