Learning from good data and bad