Error using crossvalind (line 131) Not a valid method.
Afficher commentaires plus anciens
I am trying to use the crossvalind but it throws up the error shown in the description above, does anyone know why this is coming up as an error? I have given values to all of the required parameters.
outsidef = 10;
outer_Indices = crossvalind('K_fold', size(Trainset,1), outsidef);
Réponses (2)
Walter Roberson
le 14 Mai 2022
Modifié(e) : Walter Roberson
le 14 Mai 2022
0 votes
'Kfold' not 'K_fold'
1 commentaire
Chris Murchison
le 14 Mai 2022
Steven Lord
le 14 Mai 2022
0 votes
According to the documentation page for crossvalind the value of the first input (listed as cvMethod on that page) that selects K-fold validation is 'Kfold' not 'K_fold'. Remove the underscore.
1 commentaire
Chris Murchison
le 14 Mai 2022
Catégories
En savoir plus sur Feature Detection and Extraction dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!