Noise reduction for instance-based learning with a local maximal margin approach