Skip to content

Commit

Permalink
Merge pull request fengdu78#3 from chengpiaopiao/master
Browse files Browse the repository at this point in the history
4.6公式小错误
  • Loading branch information
fengdu78 authored Nov 25, 2017
2 parents c77bcfd + 432dc25 commit 88dbd99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion week2.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ ${{\text{h}}_{\theta}}(x)={{\theta }_{0}}\text{+}{{\theta }_{1}}(size)+{{\theta

正规方程是通过求解下面的方程来找出使得代价函数最小的参数的:$\frac{\partial}{\partial{\theta_{j}}}J\left( {\theta_{j}} \right)=0$ 。
假设我们的训练集特征矩阵为 $X$(包含了 ${{x}_{0}}=1$)并且我们的训练集结果为向量 $y$,则利用正规方程解出向量 $\theta ={{\left( {X^T}X \right)}^{-1}}{X^{T}}y$ 。
上标T代表矩阵转置,上标-1 代表矩阵的逆。设矩阵$A={X^{T}}X$,则:${X^{T}}X={A^{-1}}$
上标T代表矩阵转置,上标-1 代表矩阵的逆。设矩阵$A={X^{T}}X$,则:${{\left( {X^T}X \right)}^{-1}}={A^{-1}}$
以下表示数据为例:


Expand Down

0 comments on commit 88dbd99

Please sign in to comment.