Debugging algorithms with learning and validation curves