机器学习-线性回归及梯度下降算法
四个要素
- Hypothsis
- parameters
- costFunction
- Goal
以CS229第一节为例
(Hypothesis)假设房屋的价格与房屋面积的关系是一个一次函数
H θ ( x ) = θ 0 + θ 1 ∗ x \\H_\theta(x)=\theta_0+\theta_1*x Hθ(x)=θ0+θ1∗x
Parameters
θ 0 , θ 1 \theta_0,\theta_1 θ0,θ1
cost function
J ( θ )