Squared error function/Mean squared function均方误差: Cross entropy交叉熵:
对于线性模型,其损失函数为均方误差,故有(这里输入训练数据x为m*n矩阵, 线性参数为n*1):
对于j>=1: