您的位置:首页 > 其它

机器学习笔记之正规矩阵的不可逆性

2017-07-10 08:39 363 查看
Normal Equation Non-invertibility
When implementing the normal equation inoctave we want to use the 'pinv' function rather than 'inv.' The 'pinv'function will give you a value of θ evenif XTX is
notinvertible.
If XTX is non-invertible, thecommon
causes might be having :
·        Redundant features, where two features are very closelyrelated (i.e. they are linearly dependent)
·        Too many features (e.g. m ≤ n). In this case, delete somefeatures or use "regularization" (to be explained in a later lesson).
Solutions to theabove problems include deleting a feature that is linearly dependent withanother or deleting one or more features when there are too many features.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: