⬅ 返回 1、定义 成本函数(cost function):平方误差代价函数(squared error cost function) tips m为训练样本的数量 2、方法 skill 通过改变w和b的值,使得直线接近数据时,代价j很小。