Generalization error and overfitting