how to do 5 fold cross-validation for regression problem?

want to break a simple dataset such as bodyfat_dataset into 5 folds. then use the indices to perform training and testing of the dataset using fitnet.

Respuestas (1)

ahmed nebli
ahmed nebli el 5 de Oct. de 2018
u have to use cvpartition like this exapmple kf=5; c = cvpartition(size(data.label,1),'KFold',kf);
u can find more information about cvpartition here https://www.mathworks.com/help/stats/cvpartition.html

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Centro de ayuda y File Exchange.

Productos

Versión

R2018a

Etiquetas

Preguntada:

el 5 de Oct. de 2018

Respondida:

el 5 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by