Generalization Analysis for Classification