필터 지우기
필터 지우기

Dimensionality reduction on matrices with missing entries

조회 수: 2 (최근 30일)
Spresi
Spresi 2019년 5월 24일
편집: Spresi 2019년 5월 24일
Hi guys,
I wanted to do dimensionality reduction on many matrices so that they all have the same dimensions.
So, I have matrices of the dimensions: 50x220, 50x190, 50x300, 50x235, 50x149, etc. At the end I want to reduce second dimension to 10 so I would have matrices 50x10, 50x10, 50x10, 50x10 and so on for each of them. The problem is that in my case I have matrices with missing values and I use the general pca function for raw data.
So I have matrices something like that:
X(1).matrix = [1 2 3 ...
3 4 5 ...
3 4 4 ...
6 NaN 7 ...
...........
NaN NaN NaN]
X(2).matrix = [3 4 5 ...
5 6 7 ...
4 4 4 ...
NaN 3 3 ...
NaN 4 4 ...
...........
NaN NaN 7]
X(3).matrix = [3 3 3
2 1 3
...........
NaN 1 2]
After applying function pca I just get some coeff. But I dont know how to actually get to the dimensionality reduction (i.e. matrices having dimensions 50x10 dimensions). Thanks in advance for your time and help!

답변 (1개)

KSSV
KSSV 2019년 5월 24일
편집: KSSV 2019년 5월 24일
[coeff,score,latent] = pca(mymatrix)
here latent gives you variance of the principal components in decreasing order. You can pick the first n (10) number of columns.
  댓글 수: 1
Spresi
Spresi 2019년 5월 24일
편집: Spresi 2019년 5월 24일
Thanks for the answer!
So, I pick the first 10 columns of score matrix right?
Or do I pick the first 10 rows of the score matrix?

댓글을 달려면 로그인하십시오.

카테고리

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