Machine Learing by Andrew Ng --- PCA

U can use PCA to speed up your learning algorithm,but before it ,U’d better to run your learning algorithm with no PCA first(This is What Andrew Ng said).And U can also compress data by using PCA.amazing!
PCA is actually an algorithm to reduce your features,also say Dimensionality Reduction.

steps:

  • Feature Normalization.
  • Computing the covariance matrix of the data.
  • Using the build-in function ’ svd ’ to obtain U and S(i.e. [U,S,V]=svd(Sigma),Sigma is the covariance matrix we hava computed previously)
  • Projecting data.(with U and S)
  • U is a n by n matrix (n is the original number of the data’features)
  • More important things already mentioned in the lecture notes.
My solution:



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值