Input from PCA to train in SVM

2 vues (au cours des 30 derniers jours)
nurin noor
nurin noor le 2 Juin 2021
Commenté : nurin noor le 3 Juin 2021
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.

Réponse acceptée

the cyclist
the cyclist le 2 Juin 2021
Modifié(e) : the cyclist le 2 Juin 2021
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 commentaire
nurin noor
nurin noor le 3 Juin 2021
Hi Cyclist,
I've studied the thread and tried out to my code. It worked perfectly! Thank you so much!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Dimensionality Reduction and Feature Extraction dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by