Class based Influence Functions for Error Detection