吴恩达机器学习笔记--第一周-2.模型和损失函数
week1-2.Model and Cost Function
一、Model Representation
训练集(training set)中的一些符号表示:
单变量线性回归(linear regression with one variable/univariate linear regression)
二、Cost Funtion
三、Cost Function-Intruction I
四、Cost Function-Intruction II
h(x)(hypothesis )-假设函数/拟合的函数
J-代价函数(cost function)(平方差的和)
回到两变量时的代价函数:
也可使用等值线图(contour plot)对代价函数J进行描述。