generalization error formula