Reducing the number of features

Hello everyone.
I have 300 samples and each sample has 5000 features, so my matrix has 300 rows and 5000 columns.
I need to reduce the number of columns with using best features.
How can i determine the best features? What are the options that i can try to do this for getting successful classification accuracy rate?
Thanks in advance.

Respuestas (2)

Cris LaPierre
Cris LaPierre el 20 de Mzo. de 2021
Editada: Cris LaPierre el 20 de Mzo. de 2021

0 votos

You may find this video from our Data Processing and Feature Engineering course on Coursera (and perhaps the entire course) helpful.
Image Analyst
Image Analyst el 20 de Mzo. de 2021

0 votos

The simplest way might be to use PCA. A demo is attached (for a completely different situation though).

5 comentarios

Serra Aksoy
Serra Aksoy el 28 de Mzo. de 2021
Thanks for your answer, but I have a question regarding to applying PCA.
I am trying to perform principal component analysis using pca() function.
When I execute the PCA command, I am returned a matrix coeff of size 5000*299.
As far as I know coeff should be square matrix.
How can i solve this problem to reduce the number of columns?
Image Analyst
Image Analyst el 28 de Mzo. de 2021
You need to have more observations than variables (features) otherwise it can't figure out what the coefficients should be.
Serra Aksoy
Serra Aksoy el 28 de Mzo. de 2021
Editada: Serra Aksoy el 28 de Mzo. de 2021
In this case, it seems i can not use the pca().
Is there any other methods that you can suggest to me for dimension reduction when the number of samples are less than the number of features?
Image Analyst
Image Analyst el 29 de Mzo. de 2021
Maybe stepwise regression?
Serra Aksoy
Serra Aksoy el 29 de Mzo. de 2021
Thank you, I'll try to apply it.

Iniciar sesión para comentar.

Categorías

Preguntada:

el 20 de Mzo. de 2021

Comentada:

el 29 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by