Input from PCA to train in SVM

조회 수: 2 (최근 30일)
nurin noor
nurin noor 2021년 6월 2일
댓글: nurin noor 2021년 6월 3일
Hi Everyone. I had done PCA to reduce the feature but I am really confused what input from the PCA should i used to train in SVM.
I used this function :
[coeff,score,latent,tsquared,explained] = pca(fextracted);
I read somewhere they said the score should be the input. However, I dont think score is the correct one to be used since it has the same array size as my original data.

채택된 답변

the cyclist
the cyclist 2021년 6월 2일
편집: the cyclist 2021년 6월 2일
I have written a "tutorial" on how to use and interpret MATLAB's pca function here. Lots of users have asked questions (some of which are very similar to yours), and I have tried to answer them. I suggest you check that thread out, and see if it helps.
  댓글 수: 1
nurin noor
nurin noor 2021년 6월 3일
Hi Cyclist,
I've studied the thread and tried out to my code. It worked perfectly! Thank you so much!

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

추가 답변 (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