cvpartition object with manual input
Mostrar comentarios más antiguos
I want to be able to define manually/beforehand which indices go to train and which ones go to test in the cvpartition object.
How can I achieve this?
Respuestas (1)
Hi,
You can slice the data as per your need.
Look at the following example :
load ionosphere
v2 = X(1:4,:);
v2 = [v2; X(10:14,:)];
disp(v2);
Here "v2" will contain the data with your choice of indices.
Hope this helps!
Categorías
Más información sobre Discriminant Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!