what n and p denotes in n*p input matrix of pca?

2 次查看(过去 30 天)
I m bit confused matrix which is to be fed as input to princomp should be in the form of 160*25 or 25*160 where 25 are coffecients and 160 are features. as when I give input as 25*160 it is generating coefficient matrix and with 160*25 generating error Eigen value<0. Kindly help me.
thanx

采纳的回答

Walter Roberson
Walter Roberson 2016-11-27
"Rows of X correspond to observations, columns to variables"
Features would correspond to variables, but it is not obvious what you mean by "coefficients".
I would expect there to be problems if you implicitly told it there were more variables than there were observations, by using an array that was taller than it was wide, so I would expect that you need to pass in the 25 x 160 matrix.
  1 个评论
parul mittal
parul mittal 2016-11-28
编辑:parul mittal 2016-11-28
sr 25 coefficients means input images that I m using and 160 are the features that I have extracted per image. if I give 25*160 matrix as input to pca than its output coefficient matrix will be 160*160. than how can I use it as testing matrix for classifier when my target matrix will be 5*25, error will b generated target and testing mismatch. kindly help me thnx

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dimensionality Reduction and Feature Extraction 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by