完成linear regression for classification