rename calc_norm to squared_norm, which is used in classifier_base
remove redundant code
fix code style
Merge branch 'clean-regression-pa' into develop