Recursive Feature Elimination with Cross-validation

I want to do Recursive Feature Elimination with Cross-validation in matlab code. How can I do this with functions?

Réponses (1)

Christopher McCausland
Christopher McCausland le 5 Nov 2023

0 votes

Hi,
You can use the sequentialfs() function to preform recusive feature elimination: https://uk.mathworks.com/help/stats/sequentialfs.html.
Remeber to select the name pairs "Direction","backward".
Christopher

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Centre d'aide et File Exchange

Produits

Version

R2021a

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by