Identifying overfitting and generalization