pca as an optimization problem

조회 수: 5 (최근 30일)
yp78
yp78 2018년 10월 14일
답변: Prabakaran G 2022년 8월 16일
For some reasons, I would like to compute PCA (or, rather the eigenvectors and eigenvalues of a (de-meaned) sample covariance matrix ) using an oprimization function. I think I understood how to set up the objective functions and constraints, but struggling to actually implement it with Matlab. I am referring the first answer: What is the objective function of PCA? .
Could anyone help me to understand how to set up the problem with Matlab?
  댓글 수: 3
Image Analyst
Image Analyst 2018년 10월 14일
Why not just use the built-in pca() function, if you have the Statistics and Machine Learning Toolbox? See attached demos.
yp78
yp78 2018년 10월 15일
편집: yp78 2018년 10월 15일
Thank you for both your advice. I understand the related linear algebra, but I am looking at the optimization side as I need to seek some extension of PCA for some other applications, such as imposing a different type of constraint on the objective function etc. (it may no longer be a PCA then).
Or say, I just would like to know the setting up of an optimization problem with MATLAB, and PCA would be a good starting point for my particular needs.

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

답변 (1개)

Prabakaran G
Prabakaran G 2022년 8월 16일
As per my understanding, PCA can used to reduce the number of input predictors, which make the problem is simpler and generalize. Also, it reduce the complexity of the function to optimize.

카테고리

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