Local versus global models for classification problems: Fitting models where it matters